RE: mod_perl child processes using way too much RAM

2001-07-02 Thread Scott Stephenson
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 Message-
> From: Bob Foster [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 12:31 PM
> To: [EMAIL PROTECTED]
> Subject: mod_perl child processes using way too much RAM
> 
> 
> 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 that I run all the scripts in the directory under 
> mod_perl. 
> And this script is called from a large number of other files and the
> directory is hard-coded in those files so I can't move it easily.  
> 
>   Or,
> 
>   2.  Cause any httpd_perl child process which exceeds 20 
> megabytes in
> memory usage to terminate after it's done.
> 
> Thanks!
> 
> Bob
> 





Re: mod_perl child processes using way too much RAM

2001-07-02 Thread Perrin Harkins

> 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




mod_perl child processes using way too much RAM

2001-07-02 Thread Bob Foster

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 that I run all the scripts in the directory under mod_perl. 
And this script is called from a large number of other files and the
directory is hard-coded in those files so I can't move it easily.  

Or,

2.  Cause any httpd_perl child process which exceeds 20 megabytes in
memory usage to terminate after it's done.

Thanks!

Bob