alain_desilets has asked for the wisdom of the Perl Monks concerning the following question:
A year ago, we migrated from mod_cgi to mod_perl, and this has helped greatly to increase performance.
But one downside of mod_perl is that processes that serve the requests stay up for a long time, and may gradually accumulate a lot of crud. You know, things like objects whose memory cannot be released until the end of the process.
So, I was wondering if it's possible to configure mod_perl so that the worker processes automatically close down once they have served N requests (say, N=50).
I just spent 30 mins looking for something like this on the web, and I didn't find anything that remotely resembles that. Does anyone know of something like that?
Thx.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Forcing modperl processes to restart after N requests
by McA (Priest) on Oct 12, 2012 at 18:03 UTC | |
by alain_desilets (Beadle) on Oct 12, 2012 at 19:57 UTC | |
Re: Forcing modperl processes to restart after N requests
by flexvault (Monsignor) on Oct 12, 2012 at 15:29 UTC | |
Re: Forcing modperl processes to restart after N requests
by Anonymous Monk on Oct 12, 2012 at 18:15 UTC | |
by Anonymous Monk on Oct 12, 2012 at 21:41 UTC | |
by McA (Priest) on Oct 12, 2012 at 18:29 UTC | |
by Anonymous Monk on Oct 12, 2012 at 20:23 UTC |