MaxClients (150) is not an integer multiple
Starting Apache on Gentoo, you may get warnings similar to the following.
chris@server ~/lime $ sudo /etc/init.d/apache2 stop
Password:
* Stopping apache2 ...
WARNING: MaxClients (150) is not an integer multiple
of ThreadsPerChild (35), lowering MaxClients to 140
for a maximum of 4 child processes,
WARNING: MaxClients (25) must be at least as large
as ThreadsPerChild (35). Automatically
increasing MaxClients to 35. [ ok ]
chris@server ~/lime $ sudo /etc/init.d/apache2 start
* Starting apache2 ...
WARNING: MaxClients (150) is not an integer multiple
of ThreadsPerChild (35), lowering MaxClients to 140
for a maximum of 4 child processes,
WARNING: MaxClients (25) must be at least as large
as ThreadsPerChild (35). Automatically
increasing MaxClients to 35.
You can resolve these warnings by editing your mpm file and changing ThreadsPerChild so that MaxClients becomes a multiple of it. In this case, setting it to 25 should do the trick.
sudo vim /etc/apache2/modules.d/00_mpm.conf
Change the values and save the file. Now restart Apache and it should stop the warnings.
You could also change MaxClients, but this would only resolve the first warning, and not the second.
Starting Apache on Gentoo, you may get warnings similar to the following.
chris@server ~/lime $ sudo /etc/init.d/apache2 stop Password: * Stopping apache2 ... WARNING: MaxClients (150) is not an integer multiple of ThreadsPerChild (35), lowering MaxClients to 140 for a maximum of 4 child processes, WARNING: MaxClients (25) must be at least as large as ThreadsPerChild (35). Automatically increasing MaxClients to 35. [ ok ] chris@server ~/lime $ sudo /etc/init.d/apache2 start * Starting apache2 ... WARNING: MaxClients (150) is not an integer multiple of ThreadsPerChild (35), lowering MaxClients to 140 for a maximum of 4 child processes, WARNING: MaxClients (25) must be at least as large as ThreadsPerChild (35). Automatically increasing MaxClients to 35.
You can resolve these warnings by editing your mpm file and changing ThreadsPerChild so that MaxClients becomes a multiple of it. In this case, setting it to 25 should do the trick.
sudo vim /etc/apache2/modules.d/00_mpm.conf
Change the values and save the file. Now restart Apache and it should stop the warnings.
You could also change MaxClients, but this would only resolve the first warning, and not the second.