折雨的天空

新浪微薄腾讯微薄

最新碎语:最近霉到了住。哎。。。

您的位置:折雨的天空 >php开发> AH00326: Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting

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

windows下apache的假死,有时候可能是就是因为这个原因造成的


需要启用mpm模块


# Server-pool management (MPM specific)
Include conf/extra/httpd-mpm.conf (去掉该行前面的注释符号"#")

然后修改:


#由于mpm_winnt模块只会创建1个子进程,因此这里对单个子进程的参数设置就相当于对整个Apache的参数设置。

<IfModule mpm_winnt_module>
ThreadsPerChild      521 #默认值是150,推荐设置:小型网站=1000 中型网站=1000~2000 大型网站=2000~3500
MaxRequestsPerChild    3000 #推荐设置:小=10000 中或大=20000~100000
</IfModule>


不能设置过大,设置过大会报错:VirtualAlloc() failed: [0x00000008] 存储空间不足,无法处理此命令。



参考地址:https://www.cnblogs.com/hhccdf/p/7360311.html

------------正 文 已 结 束, 感 谢 您 的 阅 读 (折雨的天空)--------------------

转载请注明本文标题和链接:《AH00326: Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting

奖励一下

取消

分享不易,烦请有多多打赏,如您也困难,点击右边关闭即可!

扫码支持
扫码打赏,5元,10元,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

-秒后自动关闭,如已打赏,或者不愿打赏,请点击右上角关闭图标。

发表评论

路人甲 表情
看不清楚?点图切换