~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to docs/conf/extra/httpd-mpm.conf.in

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>
 
20
LockFile @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
<IfModule mpm_prefork_module>
 
37
    StartServers          5
 
38
    MinSpareServers       5
 
39
    MaxSpareServers      10
 
40
    MaxClients          150
 
41
    MaxRequestsPerChild   0
 
42
</IfModule>
 
43
 
 
44
# worker MPM
 
45
# StartServers: initial number of server processes to start
 
46
# MaxClients: maximum number of simultaneous client connections
 
47
# MinSpareThreads: minimum number of worker threads which are kept spare
 
48
# MaxSpareThreads: maximum number of worker threads which are kept spare
 
49
# ThreadsPerChild: constant number of worker threads in each server process
 
50
# MaxRequestsPerChild: maximum number of requests a server process serves
 
51
<IfModule mpm_worker_module>
 
52
    StartServers          2
 
53
    MaxClients          150
 
54
    MinSpareThreads      25
 
55
    MaxSpareThreads      75 
 
56
    ThreadsPerChild      25
 
57
    MaxRequestsPerChild   0
 
58
</IfModule>
 
59
 
 
60
# BeOS MPM
 
61
# StartThreads: how many threads do we initially spawn?
 
62
# MaxClients:   max number of threads we can have (1 thread == 1 client)
 
63
# MaxRequestsPerThread: maximum number of requests each thread will process
 
64
<IfModule mpm_beos_module>
 
65
    StartThreads            10
 
66
    MaxClients              50
 
67
    MaxRequestsPerThread 10000
 
68
</IfModule>
 
69
 
 
70
# NetWare MPM
 
71
# ThreadStackSize: Stack size allocated for each worker thread
 
72
# StartThreads: Number of worker threads launched at server startup
 
73
# MinSpareThreads: Minimum number of idle threads, to handle request spikes
 
74
# MaxSpareThreads: Maximum number of idle threads
 
75
# MaxThreads: Maximum number of worker threads alive at the same time
 
76
# MaxRequestsPerChild: Maximum  number of requests a thread serves. It is 
 
77
#                      recommended that the default value of 0 be set for this
 
78
#                      directive on NetWare.  This will allow the thread to 
 
79
#                      continue to service requests indefinitely.                          
 
80
<IfModule mpm_netware_module>
 
81
    ThreadStackSize      65536
 
82
    StartThreads           250
 
83
    MinSpareThreads         25
 
84
    MaxSpareThreads        250
 
85
    MaxThreads            1000
 
86
    MaxRequestsPerChild      0
 
87
    MaxMemFree             100
 
88
</IfModule>
 
89
 
 
90
# OS/2 MPM
 
91
# StartServers: Number of server processes to maintain
 
92
# MinSpareThreads: Minimum number of idle threads per process, 
 
93
#                  to handle request spikes
 
94
# MaxSpareThreads: Maximum number of idle threads per process
 
95
# MaxRequestsPerChild: Maximum number of connections per server process
 
96
<IfModule mpm_mpmt_os2_module>
 
97
    StartServers           2
 
98
    MinSpareThreads        5
 
99
    MaxSpareThreads       10
 
100
    MaxRequestsPerChild    0
 
101
</IfModule>