Created
October 20, 2008 22:40
-
-
Save qrush/18204 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# | |
# 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 15 | |
## | |
## 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 1 | |
MinSpareServers 1 | |
MaxSpareServers 8 | |
MaxClients 10 | |
MaxRequestsPerChild 400 | |
</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 150 | |
MinSpareThreads 25 | |
MaxSpareThreads 75 | |
ThreadsPerChild 25 | |
MaxRequestsPerChild 0 | |
</IfModule> | |
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/ext/apache2/mod_passenger.so | |
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3 | |
#PassengerRuby /usr/bin/ruby1.8 | |
PassengerRuby /opt/ruby-enterprise-1.8.6-20080810/bin/ruby | |
PassengerMaxPoolSize 2 | |
PassengerPoolIdleTime 160 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment