Apache/Resource Limits
Deprecated: ord(): Providing a string that is not one byte long is deprecated. Use ord($str[0]) instead in /project/www/devpit.org/mediawiki-1.23.8/includes/cache/MessageCache.php on line 731
Deprecated: ord(): Providing a string that is not one byte long is deprecated. Use ord($str[0]) instead in /project/www/devpit.org/mediawiki-1.23.8/includes/cache/MessageCache.php on line 739
Deprecated: Creation of dynamic property PPDStack::$accum is deprecated in /project/www/devpit.org/mediawiki-1.23.8/includes/parser/Preprocessor_DOM.php on line 754
Deprecated: Constant E_STRICT is deprecated since 8.4, the error level was removed in /project/www/devpit.org/mediawiki-1.23.8/includes/GlobalFunctions.php on line 2409
From Devpit
Apache supports resource limits on CGIs. See Apache's Manual for details on that. However, these only apply to processes that Apache starts, not Apache itself. When using mod_perl, it may be desirable to limit Apache itself. (Remember, mod_perl programs don't fork. mod_perl loads the Perl interpreter directly into Apache.) If you have mod_perl installed, an easy way to limit Apache is to add the following to startup.pl:
# Set limits Apache, and along with it, mod_perl programs. use BSD::Resource; my $prio = getpriority(PRIO_PROCESS, 0); setpriority(PRIO_PROCESS, 0, ((PRIO_MAX - $prio) / 4) + $prio); # lower priority setrlimit(RLIMIT_VMEM, 419430400, 419430400); # virtual memory, bytes setrlimit(RLIMIT_CPU, 30, 30); # CPU seconds