Graham Dumpleton wrote:
> Just to make sure, were you performing a complete Apache 'stop'
> between these tests?
>
> If you had lazy initialisation to be Off and then changed it to On and
> did only an apachectl restart, then latter test would be tainted due
> to memory leaks by Python into Apache parent process.
>
I did 'apachectl stop' and then 'apachectl start'.
> Am also a little bit confused as to which processes are which. Your
> prior results had:
>
> New 'worker'
> 2144 1072 27533 /home/username/webapps/bimmdjango/apache2/bin/httpd
> 3612 227336 27539 /home/username/webapps/bimmdjango/apache2/bin/httpd
> (mod_wsgi)
> 1940 226440 27563 /home/username/webapps/bimmdjango/apache2/bin/httpd
>
> I assume this was one Apache parent process, one worker MPM Apache
> server child process and one mod_wsgi daemon process. Also assumed
> that 1940 was Apache parent and 2144 was server child process.
>
> In latest, not so clear on what processes are which.
>
Here are the results for WSGILazyInitialization Off
WSGIRestrictedEmbedded Off again:
RSS SZ PID PPID COMMAND
3768 1968 16460 1
/home/jtanner/webapps/bimmdjango/apache2/bin/httpd -k start
3040 227336 16467 16460
/home/jtanner/webapps/bimmdjango/apache2/bin/httpd -k start
3324 227336 16490 16460
/home/jtanner/webapps/bimmdjango/apache2/bin/httpd -k start
mod_wsgi = 16490
> If I get time maybe I need to get on WebFaction and have a look
> myself. They let me have an account to play with for a while but time
> expired. I think I can still log in, just no one can make requests
> against it from outside. Still sufficient to look at base memory
> usage.
>
> Oh, one final bit of advice. If you are only running the one Python
> web application, set:
>
> WSGIApplicationGroup %{GLOBAL}
>
> This will force it to run in main Python interpreter rather than new
> sub interpreter with the process. Saves a little bit on overhead of
> additional sub interpreter.
>
OK. I've put that in. It seems to save a bit more. I have a 'vanity'
account at Webfaction which is not used at the moment. I could give you
shell access if you wanted to do some testing?
-- Peter
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/modwsgi?hl=en.