折雨的天空
AH00326: Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting
2019-2-27 我好笨


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

发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容