2 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
3 <?xml-stylesheet type="text/xsl" href="../style/manual.en.xsl"?>
4 <!-- $LastChangedRevision$ -->
7 Copyright 2002-2005 The Apache Software Foundation or its licensors, as
10 Licensed under the Apache License, Version 2.0 (the "License");
11 you may not use this file except in compliance with the License.
12 You may obtain a copy of the License at
14 http://www.apache.org/licenses/LICENSE-2.0
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
23 <modulesynopsis metafile="beos.xml.meta">
26 <description>This Multi-Processing Module is optimized for BeOS.</description>
28 <sourcefile>beos.c</sourcefile>
29 <identifier>mpm_beos_module</identifier>
32 <p>This Multi-Processing Module (MPM) is the default for BeOS. It uses
33 a single control process which creates threads to handle requests.</p>
35 <seealso><a href="../bind.html">Setting which addresses and ports Apache
38 <directivesynopsis location="mpm_common"><name>User</name>
40 <directivesynopsis location="mpm_common"><name>Group</name>
42 <directivesynopsis location="mpm_common"><name>Listen</name>
44 <directivesynopsis location="mpm_common"><name>ListenBacklog</name>
46 <directivesynopsis location="mpm_common"><name>ReceiveBufferSize</name>
48 <directivesynopsis location="mpm_common"><name>SendBufferSize</name>
50 <directivesynopsis location="mpm_common"><name>StartThreads</name>
52 <directivesynopsis location="mpm_common"><name>MinSpareThreads</name>
54 <directivesynopsis location="mpm_common"><name>MaxSpareThreads</name>
56 <directivesynopsis location="mpm_common"><name>MaxClients</name>
58 <directivesynopsis location="mpm_common"><name>CoreDumpDirectory</name>
60 <directivesynopsis location="mpm_common"><name>MaxMemFree</name>
62 <directivesynopsis location="mpm_common"><name>PidFile</name>
64 <directivesynopsis location="mpm_common"><name>ScoreBoardFile</name>
68 <name>MaxRequestsPerThread</name>
69 <description>Limit on the number of requests that an individual thread
70 will handle during its life</description>
71 <syntax>MaxRequestsPerThread <var>number</var></syntax>
72 <default>MaxRequestsPerThread 0</default>
73 <contextlist><context>server config</context></contextlist>
76 <p>The <directive>MaxRequestsPerThread</directive> directive sets
77 the limit on the number of requests that an individual server thread
78 will handle. After <directive>MaxRequestsPerThread</directive>
79 requests, the thread will die. If <directive
80 >MaxRequestsPerThread</directive> is <code>0</code>, then the thread
81 will never expire.</p>
83 <p>Setting <directive>MaxRequestsPerThread</directive> to a
84 non-zero limit has two beneficial effects:</p>
87 <li>it limits the amount of memory that a thread can consume
88 by (accidental) memory leakage;</li>
90 <li>by giving threads a finite lifetime, it helps reduce
91 the number of threads when the server load reduces.</li>
94 <note><title>Note:</title>
95 <p>For <directive module="core">KeepAlive</directive> requests, only
96 the first request is counted towards this limit. In effect, it
97 changes the behavior to limit the number of <em>connections</em>