[mod_python] possible memory leak?

ron ron at revision3.com
Mon Oct 9 03:52:33 EDT 2006


Of course!  This didn't even occur to me.  This helped a lot, Thanks.

-Ron

Julien Cigar wrote:
> 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
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20061009/f0d883da/signature.bin


More information about the Mod_python mailing list