1#
2# Server-Pool Management (MPM specific)
3# 
4
5#
6# PidFile: The file in which the server should record its process
7# identification number when it starts.
8#
9# Note that this is the default PidFile for most MPMs.
10#
11<IfModule !mpm_netware_module>
12    PidFile "@rel_runtimedir@/httpd.pid"
13</IfModule>
14
15#
16# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
17#
18<IfModule !mpm_winnt_module>
19<IfModule !mpm_netware_module>
20LockFile "@rel_logfiledir@/accept.lock"
21</IfModule>
22</IfModule>
23
24#
25# Only one of the below sections will be relevant on your
26# installed httpd.  Use "apachectl -l" to find out the
27# active mpm.
28#
29
30# prefork MPM
31# StartServers: number of server processes to start
32# MinSpareServers: minimum number of server processes which are kept spare
33# MaxSpareServers: maximum number of server processes which are kept spare
34# MaxClients: maximum number of server processes allowed to start
35# MaxRequestsPerChild: maximum number of requests a server process serves
36# ServerLimit and MaxClients support n% syntax which sets them to a
37# fraction of the current RLIMIT_NPROC limit.  On error the values
38# are unchanged, so set a numeric value first just in case.
39<IfModule mpm_prefork_module>
40    StartServers          1
41    MinSpareServers       1
42    MaxSpareServers      10
43    ServerLimit          50%
44    MaxClients          150
45    MaxClients           50%
46    MaxRequestsPerChild   0
47</IfModule>
48
49# worker MPM
50# StartServers: initial number of server processes to start
51# MaxClients: maximum number of simultaneous client connections
52# MinSpareThreads: minimum number of worker threads which are kept spare
53# MaxSpareThreads: maximum number of worker threads which are kept spare
54# ThreadsPerChild: constant number of worker threads in each server process
55# MaxRequestsPerChild: maximum number of requests a server process serves
56<IfModule mpm_worker_module>
57    StartServers          2
58    MaxClients          150
59    MinSpareThreads      25
60    MaxSpareThreads      75 
61    ThreadsPerChild      25
62    MaxRequestsPerChild   0
63</IfModule>
64
65# BeOS MPM
66# StartThreads: how many threads do we initially spawn?
67# MaxClients:   max number of threads we can have (1 thread == 1 client)
68# MaxRequestsPerThread: maximum number of requests each thread will process
69<IfModule mpm_beos_module>
70    StartThreads            10
71    MaxClients              50
72    MaxRequestsPerThread 10000
73</IfModule>
74
75# NetWare MPM
76# ThreadStackSize: Stack size allocated for each worker thread
77# StartThreads: Number of worker threads launched at server startup
78# MinSpareThreads: Minimum number of idle threads, to handle request spikes
79# MaxSpareThreads: Maximum number of idle threads
80# MaxThreads: Maximum number of worker threads alive at the same time
81# MaxRequestsPerChild: Maximum  number of requests a thread serves. It is 
82#                      recommended that the default value of 0 be set for this
83#                      directive on NetWare.  This will allow the thread to 
84#                      continue to service requests indefinitely.                          
85<IfModule mpm_netware_module>
86    ThreadStackSize      65536
87    StartThreads           250
88    MinSpareThreads         25
89    MaxSpareThreads        250
90    MaxThreads            1000
91    MaxRequestsPerChild      0
92    MaxMemFree             100
93</IfModule>
94
95# OS/2 MPM
96# StartServers: Number of server processes to maintain
97# MinSpareThreads: Minimum number of idle threads per process, 
98#                  to handle request spikes
99# MaxSpareThreads: Maximum number of idle threads per process
100# MaxRequestsPerChild: Maximum number of connections per server process
101<IfModule mpm_mpmt_os2_module>
102    StartServers           2
103    MinSpareThreads        5
104    MaxSpareThreads       10
105    MaxRequestsPerChild    0
106</IfModule>
107
108# WinNT MPM
109# ThreadsPerChild: constant number of worker threads in the server process
110# MaxRequestsPerChild: maximum  number of requests a server process serves
111<IfModule mpm_winnt_module>
112    ThreadsPerChild      150
113    MaxRequestsPerChild    0
114</IfModule>
115
116