]> TLD Linux GIT Repositories - packages/apache.git/blobdiff - apache-mpm.conf
- release 2
[packages/apache.git] / apache-mpm.conf
index 79ce51a256d43c2bd05a9d95aac6c3a904e198e2..5a1b75c0450d5b42b0753c5d72131abcc22de448 100644 (file)
@@ -1,7 +1,8 @@
 #
 # Server-Pool Management (MPM specific)
 #
-# Use prefork as default
+
+# MPM to use (only one at a time)
 LoadModule mpm_prefork_module                modules/mod_mpm_prefork.so
 #LoadModule mpm_worker_module                modules/mod_mpm_worker.so
 #LoadModule mpm_event_module                modules/mod_mpm_event.so
@@ -14,10 +15,14 @@ LoadModule mpm_prefork_module                modules/mod_mpm_prefork.so
 #
 PidFile /var/run/httpd.pid
 
+# Mutex: Allows you to set the mutex mechanism and mutex file directory
+# for individual mutexes, or change the global defaults
 #
-# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
+# Uncomment and change the directory if mutexes are file-based and the default
+# mutex file directory is not on a local disk or is not appropriate for some
+# other reason.
 #
-Mutex file:/var/run/httpd/
+# Mutex default:/var/run/httpd/
 
 #
 # Only one of the below sections will be relevant on your
@@ -25,15 +30,32 @@ Mutex file:/var/run/httpd/
 # active mpm.
 #
 
+# prefork MPM
 # StartServers: number of server processes to start
-# MinSpareThreads: minimum number of server processes which are kept spare
-# MaxSpareThreads: maximum number of server processes which are kept spare
-# MaxRequestWorkers: Maximum number of connections that will be processed simultaneously
-# MaxRequestsPerChild: maximum number of requests a server process serves
+# MinSpareServers: minimum number of server processes which are kept spare
+# MaxSpareServers: maximum number of server processes which are kept spare
+# MaxRequestWorkers: maximum number of server processes allowed to start
+# MaxConnectionsPerChild: maximum number of requests a server process serves
+<IfModule mpm_prefork_module>
+       StartServers              5
+       MinSpareServers           5
+       MaxSpareServers          10
+       MaxRequestWorkers                       150
+       MaxConnectionsPerChild   0
+</IfModule>
 
-StartServers             5
-MinSpareServers                  5
-MaxSpareServers                 10
-MaxRequestWorkers      150
-ThreadsPerChild        25
-#MaxConnectionsPerChild        0
+# worker MPM
+# StartServers: initial number of server processes to start
+# MaxRequestWorkers: 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
+# MaxConnectionsPerChild: maximum number of requests a server process serves
+<IfModule mpm_worker_module>
+       StartServers            2
+       MaxRequestWorkers                       150
+       MinSpareThreads         25
+       MaxSpareThreads         75
+       ThreadsPerChild         25
+       MaxConnectionsPerChild  0
+</IfModule>