[rt-devel] Severe Memory Leak

Vivek Khera khera at kcilink.com
Wed Sep 24 14:41:41 EDT 2003


>>>>> "ST" == Simon Talbot <simont at nse.co.uk> writes:

ST> The system is lightly loaded with perhaps 50 tickets in total. If a
ST> browser is left with 'Support at a glance' page showing, and auto
ST> refresh set to every 2 minutes, the system leaks memory every refresh --
ST> anywhere between 100 bytes and 4 or 5k per refresh.

Perhaps switching to a process model where the processes are not
persistent for so long will help.  The thing with mod_perl is that the
perl interpreter is persistent, so any memory it allocates will not be
released to the system upon termination of the request.  This is not a
memory leak -- it is just how it works.  The perl process has gotten
the memory from the system and can reuse it many times to satisfy the
memory allocation needs of the code.

Your options are to either reduce the number of requests each mod_perl
process handles (MaxRequests in httpd.conf) or to use something like
speedy cgi with a kill idle processes after X minutes of idle time so
that the memory is released back to the system.



More information about the Rt-devel mailing list