Apache Reference Manual (8)

MaxRequestsPerChild directive
Syntax: MaxRequestsPerChild number
Default: MaxRequestsPerChild 0
Context: server config
Status: core
The MaxRequestsPerChild directive sets the limit on the number of requests that an individual child server process will handle. After MaxRequestsPerChild requests, the child process will die. If MaxRequestsPerChild is 0, then the process will never expire.
Setting MaxRequestsPerChild to a non-zero limit has two beneficial effects:
it limits the amount of memory that process can consume by (accidental) memory leakage;
by giving processes a finite lifetime, it helps reduce the number of processes when the server load reduces.
This directive has no effect on Win32.
NOTE: For KeepAlive requests, only the first request is counted towards this limit. In effect, it changes the behavior to limit the number of connections per child.
--------------------------------------------------------------------------------
MaxSpareServers directive
Syntax: MaxSpareServers number
Default: MaxSpareServers 10
Context: server config
Status: core
The MaxSpareServers directive sets the desired maximum number of idle 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.
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.
This directive has no effect when used with the Apache Web server on a Microsoft Windows platform.
See also MinSpareServers and StartServers.
--------------------------------------------------------------------------------
MinSpareServers directive
Syntax: MinSpareServers number
Default: MinSpareServers 5
Context: server config
Status: core
The MinSpareServers directive sets the desired minimum number of idle 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.

时间: 2024-07-29 12:35:02

Apache Reference Manual (8)的相关文章

Apache Reference Manual (11)

ServerRoot directiveSyntax: ServerRoot directory-filenameDefault: ServerRoot /usr/local/apacheContext: server configStatus: coreThe ServerRoot directive sets the directory in which the server lives. Typically it will contain the subdirectories conf/

Apache Reference Manual (2)

AuthName directiveSyntax: AuthName auth-domainContext: directory, .htaccessOverride: AuthConfigStatus: coreThis directive sets the name of the authorization realm for a directory. This realm is given to the client so that the user knows which usernam

Apache Reference Manual (4)

<DirectoryMatch>Syntax: <DirectoryMatch regex> ... </DirectoryMatch> Context: server config, virtual hostStatus: Core.Compatibility: Available in Apache 1.3 and later <DirectoryMatch> and </DirectoryMatch> are used to enclose

Apache Reference Manual (9)

PidFile directiveSyntax: PidFile filenameDefault: PidFile logs/httpd.pidContext: server configStatus: coreThe PidFile directive sets the file to which the server records the process id of the daemon. If the filename does not begin with a slash (/) th

Apache Reference Manual (5)

<FilesMatch>Syntax: <FilesMatch regex> ... </FilesMatch>Context: server config, virtual host, .htaccessStatus: coreCompatibility: only available in Apache 1.3 and above.The <FilesMatch> directive provides for access control by file

Apache Reference Manual (1)

Apache Core FeaturesThese configuration parameters control the core Apache features, and are always available.AccessConfig directiveSyntax: AccessConfig filenameDefault: AccessConfig conf/access.confContext: server config, virtual hostStatus: coreThe

Apache Reference Manual (3)

ContentDigest directiveSyntax: ContentDigest on|offDefault: ContentDigest offContext: server config, virtual host, directory, .htaccessOverride: OptionsStatus: experimentalCompatibility: ContentDigest is only available in Apache 1.1 and laterThis dir

Apache Reference Manual (6)

KeepAliveTimeout directiveSyntax: KeepAliveTimeout secondsDefault: KeepAliveTimeout 15Context: server configStatus: CoreCompatibility: KeepAliveTimeout is only available in Apache 1.1 and later.The number of seconds Apache will wait for a subsequent

Apache Reference Manual (10)

Satisfy directiveSyntax: Satisfy 'any' or 'all'Default: Satisfy allContext: directory, .htaccessStatus: coreCompatibility: Satisfy is only available in Apache 1.2 and laterAccess policy if both allow and require used. The parameter can be either 'all