Apache下的MPM模式
Apache的prefork模式
<IfModule prefork.c>
StartServers 5 #初始化进程数量
MinSpareServers 5 #空闲进程总数最小值
MaxSpareServers 10 #空闲进程总数最大值
MaxClients 150 #最大客户端连接数量限制
MaxRequestsPerChild 0 #子进程将能处理的请求数量
</IfModule>Apache的worker模式
<IfModule worker.c>
ServerLimit 25 #每个子进程可配置的线程数上限
ThreadLimit 200 #所有服务线程总数的硬限制
StartServers 3
MaxClients 2000(2.3.13后改为MaxRequestWorkers)
MinSpareThreads 50
MaxSpareThreads 200
ThreadsPerChild 100 #每个子进程建立的线程数
MaxRequestsPerChild 0 (MaxConnectionsPerChild)
</IfModule>Last updated