<IfModule mpm_worker_module>
StartServers 5
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
ServerLimit 400
MaxClients 300
MaxRequestsPerChild 0
</IfModule>
<IfModule worker.c>
StartServers 10
ServerLimit 50
MaxClients 1000
MinSpareThreads 75
MaxSpareThreads 200
ThreadsPerChild 50
MaxRequestsPerChild 50
</IfModule>
ThreadsPerChild 与 MaxClients 有关联
更改apache 工作模式为 work 的方法:
StartServers 5
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
ServerLimit 400
MaxClients 300
MaxRequestsPerChild 0
</IfModule>
<IfModule worker.c>
StartServers 10
ServerLimit 50
MaxClients 1000
MinSpareThreads 75
MaxSpareThreads 200
ThreadsPerChild 50
MaxRequestsPerChild 50
</IfModule>
ThreadsPerChild 与 MaxClients 有关联
更改apache 工作模式为 work 的方法: