]> granicus.if.org Git - apache/blob - docs/conf/extra/httpd-mpm.conf.in
Updated event mpm configuration to match the defaults in documentation and header...
[apache] / docs / conf / extra / httpd-mpm.conf.in
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 # Only one of the below sections will be relevant on your
17 # installed httpd.  Use "apachectl -l" to find out the
18 # active mpm.
19 #
20
21 # Simple MPM
22 # SimpleProcCount: Number of child processes launched at server startup
23 # SimpleThreadCount: Set the number of Worker Threads Per-Process
24 <IfModule mpm_simple_module>
25     SimpleProcCount 5
26     SimpleThreadCount 5
27 </IfModule>
28
29 # prefork MPM
30 # StartServers: number of server processes to start
31 # MinSpareServers: minimum number of server processes which are kept spare
32 # MaxSpareServers: maximum number of server processes which are kept spare
33 # MaxRequestWorkers: maximum number of server processes allowed to start
34 # MaxConnectionsPerChild: maximum number of connections a server process serves
35 #                         before terminating
36 <IfModule mpm_prefork_module>
37     StartServers             5
38     MinSpareServers          5
39     MaxSpareServers         10
40     MaxRequestWorkers      250
41     MaxConnectionsPerChild   0
42 </IfModule>
43
44 # worker MPM
45 # StartServers: initial number of server processes to start
46 # MinSpareThreads: minimum number of worker threads which are kept spare
47 # MaxSpareThreads: maximum number of worker threads which are kept spare
48 # ThreadsPerChild: constant number of worker threads in each server process
49 # MaxRequestWorkers: maximum number of worker threads
50 # MaxConnectionsPerChild: maximum number of connections a server process serves
51 #                         before terminating
52 <IfModule mpm_worker_module>
53     StartServers             3
54     MinSpareThreads         75
55     MaxSpareThreads        250 
56     ThreadsPerChild         25
57     MaxRequestWorkers      400
58     MaxConnectionsPerChild   0
59 </IfModule>
60
61 # event MPM
62 # StartServers: initial number of server processes to start
63 # MinSpareThreads: minimum number of worker threads which are kept spare
64 # MaxSpareThreads: maximum number of worker threads which are kept spare
65 # ThreadsPerChild: constant number of worker threads in each server process
66 # MaxRequestWorkers: maximum number of worker threads
67 # MaxConnectionsPerChild: maximum number of connections a server process serves
68 #                         before terminating
69 <IfModule mpm_event_module>
70     StartServers             3
71     MinSpareThreads         75
72     MaxSpareThreads        250
73     ThreadsPerChild         25
74     MaxRequestWorkers      400
75     MaxConnectionsPerChild   0
76 </IfModule>
77
78 # NetWare MPM
79 # ThreadStackSize: Stack size allocated for each worker thread
80 # StartThreads: Number of worker threads launched at server startup
81 # MinSpareThreads: Minimum number of idle threads, to handle request spikes
82 # MaxSpareThreads: Maximum number of idle threads
83 # MaxThreads: Maximum number of worker threads alive at the same time
84 # MaxConnectionsPerChild: Maximum  number of connections a thread serves. It
85 #                         is recommended that the default value of 0 be set
86 #                         for this directive on NetWare.  This will allow the
87 #                         thread to continue to service requests indefinitely.
88 <IfModule mpm_netware_module>
89     ThreadStackSize      65536
90     StartThreads           250
91     MinSpareThreads         25
92     MaxSpareThreads        250
93     MaxThreads            1000
94     MaxConnectionsPerChild   0
95 </IfModule>
96
97 # OS/2 MPM
98 # StartServers: Number of server processes to maintain
99 # MinSpareThreads: Minimum number of idle threads per process, 
100 #                  to handle request spikes
101 # MaxSpareThreads: Maximum number of idle threads per process
102 # MaxConnectionsPerChild: Maximum number of connections per server process
103 <IfModule mpm_mpmt_os2_module>
104     StartServers             2
105     MinSpareThreads          5
106     MaxSpareThreads         10
107     MaxConnectionsPerChild   0
108 </IfModule>
109
110 # WinNT MPM
111 # ThreadsPerChild: constant number of worker threads in the server process
112 # MaxConnectionsPerChild: maximum number of connections a server process serves
113 <IfModule mpm_winnt_module>
114     ThreadsPerChild        150
115     MaxConnectionsPerChild   0
116 </IfModule>
117
118 # The maximum number of free Kbytes that every allocator is allowed
119 # to hold without calling free(). In threaded MPMs, every thread has its own
120 # allocator. When not set, or when set to zero, the threshold will be set to
121 # unlimited.
122 <IfModule !mpm_netware_module>
123     MaxMemFree            2048
124 </IfModule>
125 <IfModule mpm_netware_module>
126     MaxMemFree             100
127 </IfModule>