From: Alan K. <jyt...@xh...> - 2010-01-25 16:27:35
|
[Francis] > I have integrate a jython2.5.1 service inside a java servlet (tomcat) and > compared the performance to a std wsgi server. > Take a look at this graph: (same service) > http://4.bp.blogspot.com/_-qQ8PeHP82w/S1vUL_XTc-I/AAAAAAAAAGw/Ledt-wYrx2c/s1600-h/jython_python_tomcat_20.png > > Any idea why I get so bad performance? Is there a settings I should set? Is > this a cachedir issue? > I am not sure what to look at to get acceptable performances. > > Thanks, > http://fraka6.blogspot.com/2010/01/power-of-python-within-tomcat-for.html It's very difficult to tell what might be the cause of these timing differences without knowing what code is running. How are you running the code inside Tomcat? Are you using modjy, the WSGI gateway? Or are you running a servlet written in jython? For the curve labelled "jython" in your graph, what WSGI server are you using for that? Did you use the same WSGI server for your cpython timings? Alan. |