[deployment-guide/comm-rel: 618/727] Updated the MaxRequestsPerChild directive description.

Jaromir Hradilek jhradile at fedoraproject.org
Tue Oct 19 13:17:34 UTC 2010


commit bac4714586beee917abb8797ac51a4a2aa5a639a
Author: Jaromir Hradilek <jhradile at redhat.com>
Date:   Tue Sep 7 17:43:19 2010 +0200

    Updated the MaxRequestsPerChild directive description.

 en-US/The_Apache_HTTP_Server.xml |   25 +++++++++++++++++++------
 1 files changed, 19 insertions(+), 6 deletions(-)
---
diff --git a/en-US/The_Apache_HTTP_Server.xml b/en-US/The_Apache_HTTP_Server.xml
index 9c8bec7..4aa5274 100644
--- a/en-US/The_Apache_HTTP_Server.xml
+++ b/en-US/The_Apache_HTTP_Server.xml
@@ -2723,13 +2723,26 @@ ErrorDocument 404 /404-not_found.html</screen>
             </example>
           </listitem>
         </varlistentry>
+        <varlistentry>
+          <term><option>MaxRequestsPerChild</option></term>
+          <listitem>
+            <para>
+              The <option>MaxRequestsPerChild</option> directive allows you to specify the maximum number of request a child process can serve before it dies. It takes the following form:
+            </para>
+            <screen>MaxRequestsPerChild <replaceable>number</replaceable></screen>
+            <para>
+              Setting the <replaceable>number</replaceable> to <literal>0</literal> allows unlimited number of requests.
+            </para>
+            <para>
+              The <option>MaxRequestsPerChild</option> directive is used to prevent long-lived processes from causing memory leaks.
+            </para>
+            <example id="example-apache-mpm-maxrequestsperchild">
+              <title>Using the <option>MaxRequestsPerChild</option> directive</title>
+              <screen>MaxRequestsPerChild 4000</screen>
+            </example>
+          </listitem>
+        </varlistentry>
       </variablelist>
-      <formalpara id="s3-apache-maxrequestsperchild">
-        <title>MaxRequestsPerChild</title>
-        <para>
-          <command>MaxRequestsPerChild</command> sets the total number of requests each child server process serves before the child dies. The main reason for setting <command>MaxRequestsPerChild</command> is to avoid long-lived process induced memory leaks. The default <command>MaxRequestsPerChild</command> for the <command>prefork</command> MPM is <command>4000</command> and for the <command>worker</command> MPM is <command>0</command>.
-        </para>
-      </formalpara>
       <formalpara id="s3-apache-minmaxspareservers">
         <title>MinSpareServers and MaxSpareServers</title>
         <para>


More information about the docs-commits mailing list