]>
Commit | Line | Data |
---|---|---|
86dece47 ER |
1 | # |
2 | # Server-Pool Management (MPM specific) | |
3 | # | |
4 | ||
a68bf26a AG |
5 | # MPM to use (only one at a time) |
6 | LoadModule mpm_prefork_module modules/mod_mpm_prefork.so | |
7 | #LoadModule mpm_worker_module modules/mod_mpm_worker.so | |
8 | #LoadModule mpm_event_module modules/mod_mpm_event.so | |
9 | ||
86dece47 ER |
10 | # |
11 | # PidFile: The file in which the server should record its process | |
12 | # identification number when it starts. | |
13 | # | |
14 | # Note that this is the default PidFile for most MPMs. | |
15 | # | |
16 | PidFile /var/run/httpd.pid | |
17 | ||
18 | # | |
19 | # The accept serialization lock file MUST BE STORED ON A LOCAL DISK. | |
20 | # | |
06270a6a | 21 | Mutex file:/var/run/httpd/ |
86dece47 ER |
22 | |
23 | # | |
24 | # Only one of the below sections will be relevant on your | |
25 | # installed httpd. Use "apachectl -l" to find out the | |
26 | # active mpm. | |
27 | # | |
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 | |
6c34d169 AG |
33 | # MaxRequestWorkers: maximum number of server processes allowed to start |
34 | # MaxConnectionsPerChild: maximum number of requests a server process serves | |
86dece47 | 35 | <IfModule mpm_prefork_module> |
408714fc ER |
36 | StartServers 5 |
37 | MinSpareServers 5 | |
38 | MaxSpareServers 10 | |
6c34d169 AG |
39 | MaxRequestWorkers 150 |
40 | MaxConnectionsPerChild 0 | |
86dece47 ER |
41 | </IfModule> |
42 | ||
43 | # worker MPM | |
44 | # StartServers: initial number of server processes to start | |
6c34d169 | 45 | # MaxRequestWorkers: maximum number of simultaneous client connections |
86dece47 ER |
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 | |
6c34d169 | 49 | # MaxConnectionsPerChild: maximum number of requests a server process serves |
86dece47 | 50 | <IfModule mpm_worker_module> |
408714fc | 51 | StartServers 2 |
6c34d169 | 52 | MaxRequestWorkers 150 |
408714fc ER |
53 | MinSpareThreads 25 |
54 | MaxSpareThreads 75 | |
55 | ThreadsPerChild 25 | |
6c34d169 | 56 | MaxConnectionsPerChild 0 |
86dece47 | 57 | </IfModule> |