On Sunday 08 February 2009, Graham Dumpleton said something like:
> In PHP, it preloads all its extension modules in the Apache parent
> process. That is, they have been loaded even before Apache forks off
> the child processes which handle requests. As a result, creation of
> new child processes capable of handling PHP requests is very quick
> with neglible overhead.

And, as has been mentioned, all those modules share memory, so memory 
usage is much lower.

So, in relation to this question, would there be any way to tell 
mod_wsgi to pre-load a set of modules, and then allow Apache to fork?  
That would bring memory usage WAY down as Python only loads a module 
once, and it seems each instance could share.

An alternative, but related: could mod_wsgi execute the WSGI script file 
before allowing Apache to fork?  Our script file loads just about all 
our modules when it does a bootstrap of our environment, so would be an 
ideal candidate for pre-loading all our modules.

j

-- 
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to