windows下Apache内存耗尽和内存溢出假死现象
[ 2020-06-02 11:26:15 | 作者: admin ]
首先打开 Apache 的配置文件 httpd.conf 这个文件, 找到这句:“#Include etc/extra/httpd-mpm.conf” , 将前面的 "#" 号去掉
1、在 Apache 的 conf/extra/httpd-mpm.conf 文件下配置
对应的配置参数作用如下:
首先这个值是针对apache的,不是fastcgi
ThreadsPerChild 每个子进程的最大并发线程数。
MaxRequestsPerChild 每个子进程允许处理的请求总数。如果累...
阅读全文…
1、在 Apache 的 conf/extra/httpd-mpm.conf 文件下配置
<IfModule mpm_winnt_module>
ThreadsPerChild 500
ThreadLimit 500
MaxRequestsPerChild 10000
</IfModule>
ThreadsPerChild 500
ThreadLimit 500
MaxRequestsPerChild 10000
</IfModule>
对应的配置参数作用如下:
首先这个值是针对apache的,不是fastcgi
ThreadsPerChild 每个子进程的最大并发线程数。
MaxRequestsPerChild 每个子进程允许处理的请求总数。如果累...
阅读全文…
1