]> granicus.if.org Git - apache/blob - docs/manual/mod/beos.xml
a9658fa4eecbd356092655e47a8cda24b9531b44
[apache] / docs / manual / mod / beos.xml
1 <?xml version="1.0"?>
2 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
3 <?xml-stylesheet type="text/xsl" href="../style/manual.en.xsl"?>
4 <!-- $LastChangedRevision$ -->
5
6 <!--
7  Copyright 2002-2005 The Apache Software Foundation or its licensors, as
8  applicable.
9
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
13
14      http://www.apache.org/licenses/LICENSE-2.0
15
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.
21 -->
22
23 <modulesynopsis metafile="beos.xml.meta">
24
25 <name>beos</name>
26 <description>This Multi-Processing Module is optimized for BeOS.</description>
27 <status>MPM</status>
28 <sourcefile>beos.c</sourcefile>
29 <identifier>mpm_beos_module</identifier>
30
31 <summary>
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>
34 </summary>
35 <seealso><a href="../bind.html">Setting which addresses and ports Apache
36 uses</a></seealso>
37
38 <directivesynopsis location="mpm_common"><name>User</name>
39 </directivesynopsis>
40 <directivesynopsis location="mpm_common"><name>Group</name>
41 </directivesynopsis>
42 <directivesynopsis location="mpm_common"><name>Listen</name>
43 </directivesynopsis>
44 <directivesynopsis location="mpm_common"><name>ListenBacklog</name>
45 </directivesynopsis>
46 <directivesynopsis location="mpm_common"><name>ReceiveBufferSize</name>
47 </directivesynopsis>
48 <directivesynopsis location="mpm_common"><name>SendBufferSize</name>
49 </directivesynopsis>
50 <directivesynopsis location="mpm_common"><name>StartThreads</name>
51 </directivesynopsis>
52 <directivesynopsis location="mpm_common"><name>MinSpareThreads</name>
53 </directivesynopsis>
54 <directivesynopsis location="mpm_common"><name>MaxSpareThreads</name>
55 </directivesynopsis>
56 <directivesynopsis location="mpm_common"><name>MaxClients</name>
57 </directivesynopsis>
58 <directivesynopsis location="mpm_common"><name>CoreDumpDirectory</name>
59 </directivesynopsis>
60 <directivesynopsis location="mpm_common"><name>MaxMemFree</name>
61 </directivesynopsis>
62 <directivesynopsis location="mpm_common"><name>PidFile</name>
63 </directivesynopsis>
64 <directivesynopsis location="mpm_common"><name>ScoreBoardFile</name>
65 </directivesynopsis>
66
67 <directivesynopsis>
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>
74
75 <usage>
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>
82
83     <p>Setting <directive>MaxRequestsPerThread</directive> to a
84     non-zero limit has two beneficial effects:</p>
85
86     <ul>
87       <li>it limits the amount of memory that a thread can consume
88       by (accidental) memory leakage;</li>
89
90       <li>by giving threads a finite lifetime, it helps reduce
91       the number of threads when the server load reduces.</li>
92     </ul>
93
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>
98       per thread.</p>
99     </note>
100 </usage>
101 </directivesynopsis>
102
103 </modulesynopsis>
104