Skip to content

Instantly share code, notes, and snippets.

@wojons
Created February 13, 2015 02:37
Show Gist options
  • Save wojons/cb3b6982dabdaff95031 to your computer and use it in GitHub Desktop.
Save wojons/cb3b6982dabdaff95031 to your computer and use it in GitHub Desktop.
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers 4
MinSpareServers 4
MaxSpareServers 16
ServerLimit 500
MaxClients 500
MaxRequestsPerChild 4000
</IfModule>
# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers 4
MaxClients 500
MinSpareThreads 4
MaxSpareThreads 16
ThreadsPerChild 50
MaxRequestsPerChild 4000
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment