当前位置: 首页 > 工具软件 > Ran Server > 使用案例 >

Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting

赵立果
2023-12-01

最近每天半夜,服务器都会出现崩掉的现象,pc  app 都不能正常使用

查看错误日志发现问题所在:

[Wed Nov 09 08:07:28.651642 2016] [mpm_winnt:error] [pid 4256:tid 2692] AH00326: Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting
Starting the Apache2a service
The Apache2a service is running.

根本原因是:wampserver或者phpstudy 的apache默认的进程数为64,所以我们需要对它进行扩大

               百度看了一些文章得出解决方法.

               在conf/httpd.conf里面加上下面的几行代码,然后重启apache服务就OK啦!这样开启了512工作线程,前提是设置的这个值需要和你的服务器硬件配置相关。

<IfModule mpm_winnt_module>
ThreadsPerChild 512 
MaxRequestsPerChild 0
</IfModule>

 

转载于:https://www.cnblogs.com/gyrgyr/p/6046387.html

 类似资料:

相关阅读

相关文章

相关问答