]>
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 | ||
13e66b82 AM |
18 | # Mutex: Allows you to set the mutex mechanism and mutex file directory |
19 | # for individual mutexes, or change the global defaults | |
86dece47 | 20 | # |
13e66b82 AM |
21 | # Uncomment and change the directory if mutexes are file-based and the default |
22 | # mutex file directory is not on a local disk or is not appropriate for some | |
23 | # other reason. | |
86dece47 | 24 | # |
13e66b82 | 25 | # Mutex default:/var/run/httpd/ |
86dece47 ER |
26 | |
27 | # | |
28 | # Only one of the below sections will be relevant on your | |
29 | # installed httpd. Use "apachectl -l" to find out the | |
30 | # active mpm. | |
31 | # | |
32 | ||
33 | # prefork MPM | |
34 | # StartServers: number of server processes to start | |
35 | # MinSpareServers: minimum number of server processes which are kept spare | |
36 | # MaxSpareServers: maximum number of server processes which are kept spare | |
6c34d169 AG |
37 | # MaxRequestWorkers: maximum number of server processes allowed to start |
38 | # MaxConnectionsPerChild: maximum number of requests a server process serves | |
86dece47 | 39 | <IfModule mpm_prefork_module> |
408714fc ER |
40 | StartServers 5 |
41 | MinSpareServers 5 | |
42 | MaxSpareServers 10 | |
6c34d169 AG |
43 | MaxRequestWorkers 150 |
44 | MaxConnectionsPerChild 0 | |
86dece47 ER |
45 | </IfModule> |
46 | ||
47 | # worker MPM | |
48 | # StartServers: initial number of server processes to start | |
6c34d169 | 49 | # MaxRequestWorkers: maximum number of simultaneous client connections |
86dece47 ER |
50 | # MinSpareThreads: minimum number of worker threads which are kept spare |
51 | # MaxSpareThreads: maximum number of worker threads which are kept spare | |
52 | # ThreadsPerChild: constant number of worker threads in each server process | |
6c34d169 | 53 | # MaxConnectionsPerChild: maximum number of requests a server process serves |
86dece47 | 54 | <IfModule mpm_worker_module> |
408714fc | 55 | StartServers 2 |
6c34d169 | 56 | MaxRequestWorkers 150 |
408714fc ER |
57 | MinSpareThreads 25 |
58 | MaxSpareThreads 75 | |
59 | ThreadsPerChild 25 | |
6c34d169 | 60 | MaxConnectionsPerChild 0 |
86dece47 | 61 | </IfModule> |