]> TLD Linux GIT Repositories - packages/apache.git/blob - apache-mpm.conf
- mod_authn/z_core provide mod_authn/z_default to smooth upgrade
[packages/apache.git] / apache-mpm.conf
1 #
2 # Server-Pool Management (MPM specific)
3 #
4 # Use prefork as default
5 LoadModule mpm_prefork_module                modules/mod_mpm_prefork.so
6 #LoadModule mpm_worker_module                modules/mod_mpm_worker.so
7 #LoadModule mpm_event_module                modules/mod_mpm_event.so
8
9 #
10 # PidFile: The file in which the server should record its process
11 # identification number when it starts.
12 #
13 # Note that this is the default PidFile for most MPMs.
14 #
15 PidFile /var/run/httpd.pid
16
17 #
18 # The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
19 #
20 Mutex file:/var/run/httpd/
21
22 #
23 # Only one of the below sections will be relevant on your
24 # installed httpd.  Use "apachectl -l" to find out the
25 # active mpm.
26 #
27
28 # prefork MPM
29 # StartServers: number of server processes to start
30 # MinSpareServers: minimum number of server processes which are kept spare
31 # MaxSpareServers: maximum number of server processes which are kept spare
32 # MaxClients: maximum number of server processes allowed to start
33 # MaxRequestsPerChild: maximum number of requests a server process serves
34 <IfModule mpm_prefork_module>
35         StartServers              5
36         MinSpareServers           5
37         MaxSpareServers          10
38         MaxClients                      150
39         MaxRequestsPerChild   0
40 </IfModule>
41
42 # worker MPM
43 # StartServers: initial number of server processes to start
44 # MaxClients: maximum number of simultaneous client connections
45 # MinSpareThreads: minimum number of worker threads which are kept spare
46 # MaxSpareThreads: maximum number of worker threads which are kept spare
47 # ThreadsPerChild: constant number of worker threads in each server process
48 # MaxRequestsPerChild: maximum number of requests a server process serves
49 <IfModule mpm_worker_module>
50         StartServers            2
51         MaxClients                      150
52         MinSpareThreads         25
53         MaxSpareThreads         75
54         ThreadsPerChild         25
55         MaxRequestsPerChild     0
56 </IfModule>