Sunday, April 18, 2010

WSGI and mod_python

Some how WSGI and/or mod_python develop memory leak.
If you seen your memory & swap space all taken up by Apache that load WSGI and / or mod_python you might try this work around :

Set MaxRequestsPerChild in apache2 conf to some number instead of 0 (zero).
In my case I set MaxRequestsPerChild to 3 due to the Apache is quite fast to take the memory.

Search for all MaxRequestsPerChild directives, you might be found it at multiple places.

Update : Please read the comment from the creator of mod_wsgi below .
Post a Comment