Hi,
I have a single script which is working but making the httpd_perl child
processes jump to 60 Megs or more. I've asked the programmer to fix the
script, but until he does, I'm wondering if I can either:
1. Force the script to run under PerlRun or under normal CGI. The
problem is
2. Cause any httpd_perl child process which exceeds 20 megabytes in
memory usage to terminate after it's done.
Apache::SizeLimit (and others) can do this.
- Perrin
Title: RE: mod_perl child processes using way too much RAM
Checkout Apache::SizeLimit. You can put something like this in your startup.pl:
use Apache::SizeLimit;
$Apache::SizeLimit::MAX_PROCESS_UNSHARED_SIZE = 2;
$Apache::SizeLimit::CHECK_EVERY_N_REQUESTS = 2;
-Scott
-Original