解决“server reached MaxClients setting,consider raising the Max Clients setting”

 

         下午论坛访问不了,查看apache错误日志看到“server reached MaxClients setting,consider raising the Max Clients setting”,原来是到了apache的最大连接数了,收先用/usr/local/apache//bin/httpd -l确认apache是工作在worker 模式,修改/usr/local/apache/conf/extra/http-mpm.conf,找到配置worker模式的地方如下:


<IfModule mpm_worker_module>
</IfModule>
修改为

<IfModule mpm_worker_module>
StartServers 50
MaxClients 1000
MinSpareThreads 75
ThreadsPerChild 25
MaxRequstsPerChild 10
</IfModule>

上面配置项中的含义请参考 http://blog.csdn.net/jlds123/article/details/8523490

你可能感兴趣的:(解决“server reached MaxClients setting,consider raising the Max Clients setting”)