Apache MaxClients vs ServerLimit
I understand MaxClients is the total number of apache processes that will be spawned to serve users. The manual for serverlimit says:
For the prefork MPM, this directive sets the maximum configured value for MaxClients for the lifetime of the Apache process. For the worker MPM, this directive in combination with ThreadLimit sets the maximum configured value for MaxClients for the lifetime of the Apache process. Any attempts to change this directive during a restart will be ignored, but MaxClients can be modified during a restart.
…"for the lifetime of the Apache process". What the heck does that mean?
2 Replies
For example, say you have MaxClients=10 and ServerLimit=100. If you want to change MaxClients to 50, you can just edit the config file and send a HUP signal (or USR1)
I honestly don't know what would happen in the MaxClients=1000 case - I guess Apache would either ignore the change, or set MaxClients to be 100.