在Apche配置文件httpd.conf中,有两小节是关于prefork.c 模块和 woker.c 模块的设置。内容大概如下:
<IfModule prefork.c>
ServerLimit 300
StartServers 5
MinSpareServers 5
MaxSpareServers 20
MaxClients 300
MaxRequestsPerChild 2000
</ifmodule>
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</ifmodule>
Continue reading Apache常用工作模式:prefork和worker.