From: Jeff Trawick HARD_SERVER_LIMIT
- entry in mpm_default.h and recompile.
Any connection attempts over the MaxClients limit will normally be queued, up to a number based on the +
Syntax: ServerLimit
+ number
+ Default: ServerLimit
+ 256 (prefork MPM), ServerLimit 16 (worker MPM)
+ Context: server config
+ Status: MPM
+ Module: prefork, worker
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.
Special care must be taken when using this directive.
+ If ServerLimit is set to a value much higher than
+ necessary, extra, unused shared memory will be allocated.
+ If both ServerLimit and MaxClients
+ are set to values higher than the system can handle, Apache
+ may not start or the system may become unstable.
With the prefork MPM, use this directive only if you need to
+ set MaxClients higher higher than 256. Do not set
+ the value of this directive any higher than what you might want
+ to set MaxClients to.
With the worker MPM, use this directive only if your
+ MaxClients and ThreadsPerChild
+ settings require more than 16 server processes. Do not set the
+ value of this directive any higher than the number of server
+ processes required by what you may want for MaxClients
+ and ThreadsPerChild.
Syntax: ThreadLimit
+ number
+ Default: ThreadLimit
+ 64
+ Context: server config
+ Status: MPM
+ Module: worker
This directive sets the maximum configured value for
+ ThreadsPerChild for
+ the lifetime of the Apache process. Any attempts to change this
+ directive during a restart will be ignored, but
+ ThreadsPerChild can be modified during a restart up to
+ the value of this directive.
Special care must be taken when using this directive.
+ If ThreadLimit is set to a value much higher than
+ ThreadsPerChild, extra unused shared memory will be
+ allocated. If both ThreadLimit and
+ ThreadsPerChild are set to values higher than the system
+ can handle, Apache may not start or the system may become
+ unstable.
Use this directive only if you need to set
+ ThreadsPerChild higher than 64. Do not set the value of
+ this directive any higher than what you might want to set
+ ThreadsPerChild to.