You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Mike Norton <mi...@jobsite.co.uk> on 2003/10/16 16:55:52 UTC

Apache::SizeLimit

We have just put the Apache::SizeLimit in place to try and cap the size of the processes however we still seem to see processes that are larger than the limit we set any ideas on why this would be ?
 
startup.pl
 
use Apache::SizeLimit;
$Apache::SizeLimit::MAX_PROCESS_SIZE = 30000; # in KB, so this is 30MB

httpd.conf
 
PerlRequire /usr/local/apache/modperl/startup.pl
PerlFixupHandler Apache::SizeLimit
 
Many Thanks
 
Mike
 
 
 

Re: Apache::SizeLimit

Posted by Perrin Harkins <pe...@elem.com>.
On Thu, 2003-10-16 at 10:55, Mike Norton wrote:
> We have just put the Apache::SizeLimit in place to try and cap the
> size of the processes however we still seem to see processes that are
> larger than the limit we set any ideas on why this would be ?

Processes don't exit until they finish serving a request, so they will
be larger for the time it takes to finish.  What are you looking at to
determine size?

If you need a hard limit (i.e. kill things if they go over this limit,
even if they are busy talking to a user) use Apache::Resource.

- Perrin