See also Server Crash: Not enough space: fork: Unable to fork new process. Andrews crashed with:
server reached MaxClients setting, consider raising the MaxClients setting
As of 1/11, bennett had
/usr/local/apache/conf/extra/httpd-mpm.conf
:
<IfModule mpm_prefork_module> StartServers 5 MinSpareServers 5 MaxSpareServers 10 # 04/10 Added ServerLimit to 325 ServerLimit 325 # Ptolemy_Localization changed from 150 to 325 MaxClients 325 # Ptolemy_Localization changed from 0 to 10000 MaxRequestsPerChild 10000 </IfModule>
http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxclients
says:
For non-threaded servers (i.e., prefork), MaxClients translates into the maximum number of child processes that will be launched to serve requests. The default value is 256; to increase it, you must also raise ServerLimit.
The server on andrews is using prefork, we can tell
by running apachectl -l
, which lists
prefork.c
. Also, looking at the
./configure
output in /export/home1/root/tools/httpd-2.2.17/config.status
indicates that we are using prefork.
So, this fix is to update
/usr/local/apache/conf/extra/httpd-mpm.conf
on andrews to
<IfModule mpm_prefork_module> StartServers 5 MinSpareServers 5 MaxSpareServers 10 # Ptolemy: ServerLimit needs to be set if MaxClients is > 256 ServerLimit 325 # Ptolemy: changed MaxClients from 150 to 325 1/11/11 cxh MaxClients 325 # Ptolemy: changed MaxRequestsPerChild from 0-10000 12/6/09 cxh #MaxRequestsPerChild 0 MaxRequestsPerChild 10000 </IfModule>and then restart Apache with
/etc/init.d/gsrc stop /etc/init.d/gsrc start