[mod_python] possible memory leak?

Julien Cigar jcigar at ulb.ac.be
Sun Oct 8 11:17:37 EDT 2006


Another "solution" to avoid this is to set the MaxRequestsPerChild to 
something other than 0 (for example 10000).

see http://httpd.apache.org/docs/2.0/mod/mpm_common.html#maxrequestsperchild

Julien

Graham Dumpleton wrote:
>
> On 08/10/2006, at 4:54 AM, ron wrote:
>
>> Hi all,
>>
>> I'm using mod_python with mpcp to run cherrypy behind apache.  I am
>> noticing that the apache processes seem to keep growing.  Each apache
>> process seems to grow from 100MB to over 300MB after a day of production
>>  traffic.  Is there a possible memory leak in mod_python?  Could
>> something in my app be leaking into apache/mod_python?  If it's the
>> latter, I'm not clear as to what the mechanism would be since my
>> understanding is that mod_python spawns completely new processes for
>> each pre-fork process.
>>
>> Any hints on how to debug this memory issue?
>
> There are some known memory leaks.
>
>   http://issues.apache.org/jira/browse/MODPYTHON-172
>   http://issues.apache.org/jira/browse/MODPYTHON-181
>   http://issues.apache.org/jira/browse/MODPYTHON-182
>   http://issues.apache.org/jira/browse/MODPYTHON-184
>
> These have been addressed in mod_python 3.3
>
> All I can suggest at the moment is you set up a system which uses the
> latest mod_python source code from Subversion source code repository
> and see if the leaks go away.
>
> Graham
> _______________________________________________
> 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