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] 存储空间不足,无法处理此命令。