I've got Apache installed with the worker mpm which seems to have too many processes active in spite of the configurations in place. I'll detail the configs below :
StartServers 2
MinSpareThreads 10
MaxSpareThreads 25
ThreadsPerChild 25
MaxClients 150
Based on these settings, we should be seeing a maximum of 1 Apache control process (uid:root) and 6 Apache client processes (uid:www). This being due to MaxClients/ThreadsPerChild.
However, I'm seeing a total of 1 Apache control process and 9 Apache client processes.
init
-- apache2(root)
-- -- apache2(www)
-- -- apache2(www) -- 1 thread
-- -- apache2(www) -- 26 threads
-- -- apache2(www) -- 26 threads
init
-- apache2(www) -- 2 threads
-- apache2(www)
-- apache2(www)
-- apache2(www)
We do not make it a habit of restarting Apache nor the Server, and will perform a reload 2-3 times a day at times so as to add new VHOSTs.
Would anyone be able to enlighten me as to what might be causing this ? enter code here
MaxClients doesn't determine the number of child processes - the number of child processes multiplied by the number of ThreadsPerChild determines the maximum acceptable value of MaxClients.
To meet your values of 6 child processes and 150 maxclients, use the following settings:
Note also that I modified the MaxSpareThreads value. From the documentation: