MaxConnectionsPerChild 指令
描述: | 限制单个子级服务器在其生存期内要处理的连接数 |
---|---|
句法: | MaxConnectionsPerChild number |
默认: | MaxConnectionsPerChild 0 |
内容: | 服务器配置 |
状态: | MPM |
模组: | event ,worker ,prefork ,mpm_winnt ,mpm_netware ,mpmt_os2 |
兼容性: | 可用的Apache HTTP Server 2.3.9和更高版本。MaxRequestsPerChild 仍然支持旧名称。 |
该MaxConnectionsPerChild
指令设置单个子服务器进程将处理的连接数限制。后MaxConnectionsPerChild
连接,子进程就会死亡。如果MaxConnectionsPerChild
为0
,则该过程将永不过期。
设置MaxConnectionsPerChild
为非零值将限制进程因(偶然)内存泄漏而消耗的内存量。