找到配置文件/apache/conf/extra/httpd-mpm.conf,修改设置Apache MPM Prefork模块
StartServers 3
MinSpareServers 2
MaxSpareServers 5
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 40
原来的MaxRequestsPerChild是为0,问题应该在此。
找到配置文件/apache/conf/extra/httpd-default.conf,修改KeepAlive设置
Timeout 30
KeepAlive On
#这里可设置大一点
MaxKeepAliveRequests 120
KeepAliveTimeout 5