The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Apache::Resource - Limit resources used by httpd children

SYNOPSIS

 #set memory limit in megabytes
 #default is 64 Meg
 PerlSetEnv PERL_DATA_LIMIT 35

 #set cpu limit in milliseconds
 #default is 60 milliseconds
 PerlSetEnv PERL_RLIMIT_CPU 120

 PerlChildInitHandler Apache::Resource

DESCRIPTION

Apache::Resource uses the BSD::Resource module, which uses the C function setrlimit to set limits on system resources such as memory and cpu usage.

Any RLIMIT operation available to limit on your system can be set by defining that operation as an envrionment variable with a PERL_ prefix. If no value is set a reasonable default is used if defined. See your system setrlimit manpage for available resources which can be limited.

By default, PERL_RLIMIT_DATA is set to 64 megabytes if it does not exist in the current environment.

AUTHOR

Doug MacEachern

SEE ALSO

BSD::Resource(3), setrlimit(2)