lib::Apache::ResUosuerrceC(o3n)tributed
NNAAMMEE
Apache::Resource - Limit resources used by httpd children
SSYYNNOOPPSSIISS
#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
DDEESSCCRRIIPPTTIIOONN
AAppaacchhee::::RReessoouurrccee uses the BBSSDD::::RReessoouurrccee module, which uses
the C function setrlimit to set limits on system resources
such as memory and cpu usage.
Any RRLLIIMMIITT operation available to limit on your system can
be set by defining that operation as an envrionment
variable with a PPEERRLL__ 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.
DDEEFFAAUULLTTSS
To set reasonable defaults for all RLIMITs, add this to
your httpd.conf:
PerlSetEnv PERL_RLIMIT_DEFAULTS On
PerlModule Apache::Resource
AAUUTTHHOORR
Doug MacEachern
SSEEEE AALLSSOO
BSD::Resource(3), setrlimit(2)