[mod_python] ApplicationPath kills performance?

Jim Gallacher jg.lists at sympatico.ca
Wed Sep 14 23:05:31 EDT 2005


Jim Gallacher wrote:
> Jason Stubbs wrote:
> 
>> Just a little bump...
> 
> 
> Consider it bumped. I've verified the behaviour on the dev branch and 
> will investigate further. 

Actually, I take that back. I was looking at the "Time per request: 
4.220 [ms], not "Requests per second: 1184.74 [#/sec] in my ab output so 
the behaviour is *not* verified in the dev branch. I got the same result 
with and without ApplicationPath. I'll still take another look with 
fresh eyes tommorow though.

Jim

> 
>> Jason Stubbs wrote:
>>
>>> DirectoryIndex index.psp
>>> AddHandler mod_python .psp
>>> PythonHandler mod_python.psp
>>> PythonPath "['/var/www/localhost/pythonlib']+sys.path"
>>> PythonOption ApplicationPath /
>>>
>>> $ ./ab -c 5 -n 500 http://192.168.1.101/index.psp
>>> ...
>>> Requests per second:    3.85 [#/sec] (mean)
>>>
>>> However, after removing the ApplicationPath:
>>>
>>> Requests per second:    552.10 [#/sec] (mean)
>>
>>
>>
>> Note that sessions are not in use in the script.
>>
>>> Obligatory version information is as follows:
>>>
>>> httpd       2.0.54-r9
>>> mod_python  3.1.3-r1
>>> python      2.4.1-r1
>>> (-r components are Gentoo patch-levels)
>>>
>>> Any help would be appreciated.
>>
>>
>>
>> Still the same sentiment.
>>
>> -- 
>> Jason Stubbs
>> _______________________________________________
>> Mod_python mailing list
>> Mod_python at modpython.org
>> http://mailman.modpython.org/mailman/listinfo/mod_python
>>
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
> 



More information about the Mod_python mailing list