| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> |
| <HTML> |
| <HEAD> |
| <TITLE>Apache MPM mpmt_pthread</TITLE> |
| </HEAD> |
| |
| <!-- Background white, links blue (unvisited), navy (visited), red (active) --> |
| <BODY |
| BGCOLOR="#FFFFFF" |
| TEXT="#000000" |
| LINK="#0000FF" |
| VLINK="#000080" |
| ALINK="#FF0000" |
| > |
| <!--#include virtual="header.html" --> |
| |
| <H1 ALIGN="CENTER">Multi-Processing Module prefork</H1> |
| <P> |
| This Multi-Processing Module implements a pre-forking web server. |
| </P> |
| |
| <P><A |
| HREF="module-dict.html#Status" |
| REL="Help" |
| ><STRONG>Status:</STRONG></A> MPM |
| <BR> |
| <A |
| HREF="module-dict.html#SourceFile" |
| REL="Help" |
| ><STRONG>Source File:</STRONG></A> prefork.c |
| <BR> |
| <A |
| HREF="module-dict.html#ModuleIdentifier" |
| REL="Help" |
| ><STRONG>Module Identifier:</STRONG></A> mpm_prefork_module |
| </P> |
| |
| <H2>Summary</H2> |
| |
| <p>This Multi-Processing Module (MPM) implements a pre-forking |
| non-threaded web server which handles request in a manner |
| very similar to the default behavior of Apache 1.3 on Unix.</p> |
| |
| |
| <H2>Directives</H2> |
| <UL> |
| <li><a href="mpm_common.html#coredumpdirectory">CoreDumpDirectory</a></li> |
| <li><a href="mpm_common.html#pidfile">PidFile</a></li> |
| <li><a href="mpm_common.html#lockfile">LockFile</a></li> |
| <li><a href="mpm_common.html#maxclients">MaxClients</a></li> |
| <li><a href="mpm_common.html#maxrequestsperchild">MaxRequestsPerChild</a></li> |
| <li><a href="#maxsparethreads">MaxSpareServers</a></li> |
| <li><a href="#minsparethreads">MinSpareServers</a></li> |
| <li><a href="mpm_common.html#scoreboardfile">ScoreBoardFile</a></li> |
| <li><a href="mpm_common.html#startservers">StartServers</a></li> |
| </UL> |
| |
| <hr> |
| |
| |
| <H2><A NAME="maxspareservers">MaxSpareServers directive</A></H2> |
| <!--%plaintext <?INDEX {\tt MaxSpareServers} directive> --> |
| <A |
| HREF="directive-dict.html#Syntax" |
| REL="Help" |
| ><STRONG>Syntax:</STRONG></A> MaxSpareServers <EM>number</EM><BR> |
| <A |
| HREF="directive-dict.html#Default" |
| REL="Help" |
| ><STRONG>Default:</STRONG></A> <CODE>MaxSpareServers 10</CODE><BR> |
| <A |
| HREF="directive-dict.html#Context" |
| REL="Help" |
| ><STRONG>Context:</STRONG></A> server config<BR> |
| <A |
| HREF="directive-dict.html#Status" |
| REL="Help" |
| ><STRONG>Status:</STRONG></A> core<P> |
| |
| The MaxSpareServers directive sets the desired maximum number of <EM>idle</EM> |
| child server processes. An idle process is one which is not handling |
| a request. If there are more than MaxSpareServers idle, then the parent |
| process will kill off the excess processes.<P> |
| |
| Tuning of this parameter should only be necessary on very busy sites. |
| Setting this parameter to a large number is almost always a bad idea.<P> |
| |
| <P> |
| |
| See also <A HREF="#minspareservers">MinSpareServers</A> and |
| <A HREF="mpm_common.html#startservers">StartServers</A>.<P><HR> |
| |
| <H2><A NAME="minspareservers">MinSpareServers directive</A></H2> |
| <!--%plaintext <?INDEX {\tt MinSpareServers} directive> --> |
| <A |
| HREF="directive-dict.html#Syntax" |
| REL="Help" |
| ><STRONG>Syntax:</STRONG></A> MinSpareServers <EM>number</EM><BR> |
| <A |
| HREF="directive-dict.html#Default" |
| REL="Help" |
| ><STRONG>Default:</STRONG></A> <CODE>MinSpareServers 5</CODE><BR> |
| <A |
| HREF="directive-dict.html#Context" |
| REL="Help" |
| ><STRONG>Context:</STRONG></A> server config<BR> |
| <A |
| HREF="directive-dict.html#Status" |
| REL="Help" |
| ><STRONG>Status:</STRONG></A> core<P> |
| |
| The MinSpareServers directive sets the desired minimum number of <EM>idle</EM> |
| child server processes. An idle process is one which is not handling |
| a request. If there are fewer than MinSpareServers idle, then the parent |
| process creates new children at a maximum rate of 1 per second.<P> |
| |
| Tuning of this parameter should only be necessary on very busy sites. |
| Setting this parameter to a large number is almost always a bad idea.<P> |
| |
| This directive has no effect on Microsoft Windows. |
| |
| <P> |
| |
| See also <A HREF="#maxspareservers">MaxSpareServers</A> and |
| <A HREF="mpm_common.html#startservers">StartServers</A>.<P><HR> |
| |
| |
| <!--#include virtual="footer.html" --> |
| </BODY> |
| </HTML> |