Being a dumb sysadmin myself

Just realize that the MaxClients config on this Apache2 server has been too small all the time!

In apache2.conf, there are three groups of settings:

<IfModule mpm_prefork_module>
StartServers 1
MinSpareServers 1
MaxSpareServers 10
MaxClients 200
 MaxRequestsPerChild 0
</IfModule>

<IfModule mpm_worker_module>
StartServers 1
MinSpareThreads 1
MaxSpareThreads 4
 ThreadLimit 64
 ThreadsPerChild 25
MaxClients 0
 MaxRequestsPerChild 0
</IfModule>

<IfModule mpm_event_module>
StartServers 2
MinSpareThreads 1
MaxSpareThreads 4
# ThreadLimit 64
# ThreadsPerChild 25
MaxClients 300
 MaxRequestsPerChild 0
</IfModule>

And I changed only one of the above three, leaving error logs:

[error] server reached MaxClients setting, consider raising the MaxClients setting

Continue reading “Being a dumb sysadmin myself”