Apache::Resource - Limit resources used by httpd children
#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
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.
setrlimit
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.
PERL_RLIMIT_DATA
Doug MacEachern
BSD::Resource(3), setrlimit(2)
To install mod_perl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm mod_perl
CPAN shell
perl -MCPAN -e shell install mod_perl
For more information on module installation, please visit the detailed CPAN module installation guide.