epics/Archiver Appliance インストールメモ: 00-mpm.conf

File 00-mpm.conf, 4.5 KB (added by shuei, 2 months ago)
Line 
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 "/run/httpd/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# prefork MPM
22# StartServers: number of server processes to start
23# MinSpareServers: minimum number of server processes which are kept spare
24# MaxSpareServers: maximum number of server processes which are kept spare
25# MaxRequestWorkers: maximum number of server processes allowed to start
26# MaxConnectionsPerChild: maximum number of connections a server process serves
27#                         before terminating
28<IfModule mpm_prefork_module>
29#    StartServers             5
30#    MinSpareServers          5
31#    MaxSpareServers         10
32#    MaxRequestWorkers      250
33#    MaxConnectionsPerChild   0
34    StartServers              5
35    MinSpareServers           5
36    MaxSpareServers          10
37    MaxRequestWorkers       250
38    MaxConnectionsPerChild 2000
39</IfModule>
40
41# worker MPM
42# StartServers: initial number of server processes to start
43# MinSpareThreads: minimum number of worker threads which are kept spare
44# MaxSpareThreads: maximum number of worker threads which are kept spare
45# ThreadsPerChild: constant number of worker threads in each server process
46# MaxRequestWorkers: maximum number of worker threads
47# MaxConnectionsPerChild: maximum number of connections a server process serves
48#                         before terminating
49<IfModule mpm_worker_module>
50    StartServers             3
51    MinSpareThreads         75
52    MaxSpareThreads        250
53    ThreadsPerChild         25
54    MaxRequestWorkers      400
55    MaxConnectionsPerChild   0
56</IfModule>
57
58# event MPM
59# StartServers: initial number of server processes to start
60# MinSpareThreads: minimum number of worker threads which are kept spare
61# MaxSpareThreads: maximum number of worker threads which are kept spare
62# ThreadsPerChild: constant number of worker threads in each server process
63# MaxRequestWorkers: maximum number of worker threads
64# MaxConnectionsPerChild: maximum number of connections a server process serves
65#                         before terminating
66<IfModule mpm_event_module>
67    StartServers              2
68    MinSpareThreads          50
69    MaxSpareThreads         250
70    ThreadsPerChild          25
71    ServerLimit              16
72    MaxRequestWorkers       400
73    MaxConnectionsPerChild 2000
74</IfModule>
75
76# NetWare MPM
77# ThreadStackSize: Stack size allocated for each worker thread
78# StartThreads: Number of worker threads launched at server startup
79# MinSpareThreads: Minimum number of idle threads, to handle request spikes
80# MaxSpareThreads: Maximum number of idle threads
81# MaxThreads: Maximum number of worker threads alive at the same time
82# MaxConnectionsPerChild: Maximum  number of connections a thread serves. It
83#                         is recommended that the default value of 0 be set
84#                         for this directive on NetWare.  This will allow the
85#                         thread to continue to service requests indefinitely.
86<IfModule mpm_netware_module>
87    ThreadStackSize      65536
88    StartThreads           250
89    MinSpareThreads         25
90    MaxSpareThreads        250
91    MaxThreads            1000
92    MaxConnectionsPerChild   0
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# MaxConnectionsPerChild: Maximum number of connections per server process
101<IfModule mpm_mpmt_os2_module>
102    StartServers             2
103    MinSpareThreads          5
104    MaxSpareThreads         10
105    MaxConnectionsPerChild   0
106</IfModule>
107
108# WinNT MPM
109# ThreadsPerChild: constant number of worker threads in the server process
110# MaxConnectionsPerChild: maximum number of connections a server process serves
111<IfModule mpm_winnt_module>
112    ThreadsPerChild        150
113    MaxConnectionsPerChild   0
114</IfModule>
115
116# The maximum number of free Kbytes that every allocator is allowed
117# to hold without calling free(). In threaded MPMs, every thread has its own
118# allocator. When not set, or when set to zero, the threshold will be set to
119# unlimited.
120<IfModule !mpm_netware_module>
121    MaxMemFree            2048
122</IfModule>
123<IfModule mpm_netware_module>
124    MaxMemFree             100
125</IfModule>