-
-
Save levifig/305166 to your computer and use it in GitHub Desktop.
Apache Tweaking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Timeout: The number of seconds before receives and sends time out. | |
# | |
Timeout 180 | |
# | |
# KeepAlive: Whether or not to allow persistent connections (more than | |
# one request per connection). Set to "Off" to deactivate. | |
# | |
KeepAlive On | |
# | |
# MaxKeepAliveRequests: The maximum number of requests to allow | |
# during a persistent connection. Set to 0 to allow an unlimited amount. | |
# We recommend you leave this number high, for maximum performance. | |
# | |
MaxKeepAliveRequests 100 | |
# | |
# KeepAliveTimeout: Number of seconds to wait for the next request from the | |
# same client on the same connection. | |
# | |
KeepAliveTimeout 5 | |
## | |
## Server-Pool Size Regulation (MPM specific) | |
## | |
# 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 | |
# MaxClients: maximum number of server processes allowed to start | |
# MaxRequestsPerChild: maximum number of requests a server process serves | |
<IfModule mpm_prefork_module> | |
StartServers 2 | |
MinSpareServers 2 | |
MaxSpareServers 4 | |
MaxClients 100 | |
MaxRequestsPerChild 1000 | |
</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 mpm_worker_module> | |
StartServers 2 | |
MaxClients 100 | |
MinSpareThreads 10 | |
MaxSpareThreads 40 | |
ThreadsPerChild 10 | |
MaxRequestsPerChild 1000 | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment