apache tomcat_apache lowering ThreadsPerChild to 1000怎么解决

更新时间:2020-04-24    来源:apache    手机版     字体:

【www.bbyears.com--apache】

错误报告

事件类型: 错误
事件来源: Apache Service
事件种类: 无
事件 ID: 3299
日期:  2016-1-29
事件:  8:55:12
用户:  N/A
计算机: i-5091ecfp
描述:
The Apache service named  reported the following error:
>>> lowering ThreadsPerChild to 1000. To increase, please see the     .

有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。

解决办法

ThreadsPerChild:每个服务进程中的工作线程数目
ThreadLimit要大于ThreadsPerChild

编辑httpd-mpm.conf 文件,加入ServerLimit指令即可。

   
 StartServers          10    
MinSpareServers       5    
MaxSpareServers      25    
ServerLimit          1500    
MaxClients           1000   
MaxRequestsPerChild   128

    关于apache使用prefork还是worker工作模式可以在编译apache时指定,默认是prefork工作模式,可以使用/home/apache/bin/apachectl -l 命令查看,要想配置生效必须./apachectl stop  然后./apachectl start ,不能使用./apachectl restart  这样是不生效的

本文来源:http://www.bbyears.com/jiaocheng/93017.html

热门标签

更多>>

本类排行