server seems busy, (you may need to increase StartServers, or Min/MaxSpareSer...
apache使用命令 apachectl graceful 杀死所有httpd子进程后,并没有开启新的子进程。查看错误日志发现如下信息:
server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 2 idle, and 30 total children
去查看配置文件,关于preforker相关的配置为:
ServerLimit 2000
StartServers 32
MinSpareServers 4
MaxSpareServers 4
MaxClients 512
MaxRequestsPerChild 10000
这里的问题,就在于 MinSpareServers 和 MaxSpareServers 都为4。这是不合理的,至于细节需要研究MinSpareServers 和 MaxSpareServers 的含义,以后有机会我会写一篇研究的文章。
更改配置,加大startservers值和maxspareservers值:
ServerLimit 2000
StartServers 300
MinSpareServers 5
MaxSpareServers 10
MaxClients 512
MaxRequestsPerChild 10000
一切恢复正常。
server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 2 idle, and 30 total children
去查看配置文件,关于preforker相关的配置为:
ServerLimit 2000
StartServers 32
MinSpareServers 4
MaxSpareServers 4
MaxClients 512
MaxRequestsPerChild 10000
这里的问题,就在于 MinSpareServers 和 MaxSpareServers 都为4。这是不合理的,至于细节需要研究MinSpareServers 和 MaxSpareServers 的含义,以后有机会我会写一篇研究的文章。
更改配置,加大startservers值和maxspareservers值:
ServerLimit 2000
StartServers 300
MinSpareServers 5
MaxSpareServers 10
MaxClients 512
MaxRequestsPerChild 10000
一切恢复正常。
编辑回复