1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Apache Web Server Performance Tuning: Number of Processes</TITLE>
<LINK HREF="performance-2.html" REL=next>
<LINK HREF="performance.html#toc1" REL=contents>
</HEAD>
<BODY>
<A HREF="performance-2.html">Next</A>
Previous
<A HREF="performance.html#toc1">Contents</A>
<HR>
<H2><A NAME="s1">1. Number of Processes</A></H2>
<P>Apache is built around a parent process, which accepts connections from
clients, and one or more child processes. These child processes
complete the requests and return the accessed page. The number of child
processes changes dynamically, according to the number of connections to
the Web server. The number of processes is limited by the value
specified here.
<P>
<H2><A NAME="ss1.1">1.1 Start servers</A>
</H2>
<P>The Web server will start with the number of child processes
specified here.
<P>
<H2><A NAME="ss1.2">1.2 Max clients per servers</A>
</H2>
<P>The maximum number of child processes. Each client connection uses a
child process, so this value indirectly controls how many clients can
simultaneously connect to the Web server. If this value is too low,
clients will be locked out, so be generous. This value is intended
mostly as a safeguard against having a runaway web server crash the
entire system.
<P>
<H2><A NAME="ss1.3">1.3 Max requests per child</A>
</H2>
<P>A child process will exit after serving this number of
accesses. It is intended as a failsafe against possible
memory leaks. Currently, however, there are none known.
<P>
<H2><A NAME="ss1.4">1.4 Minimum of spare servers</A>
</H2>
<P>Apache makes sure that there always are a few idle child processes, for
handling transient load spikes. If fewer than this number of child
processes are idle, more are started.
<P>
<H2><A NAME="ss1.5">1.5 Maximum of spare servers</A>
</H2>
<P>Apache also makes sure that no more than this number of idle child
processes exist. If more exist, some of them are killed.
<P>
<HR>
<A HREF="performance-2.html">Next</A>
Previous
<A HREF="performance.html#toc1">Contents</A>
</BODY>
</HTML>
|