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.
Don't have time to check my blog? Get a weekly email with all the new posts. This is my personal blog, so obviously it is 100% spam free.
Tags: apache, gentoo, maxclients, web server
This entry was posted on Wednesday, January 23rd, 2013 at 8:42 am and is filed under Life, Tech. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.