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.