apache偶尔长时间不响应、卡顿、假死问题修复
muke
每日精进
muke
2022-07-05 11:54:15
2021
{{single.collect_count}}

1、打开/www/server/apache/conf/httpd.conf添加

AcceptFilter http none

AcceptFilter https none

此处可以解决某些浏览器导致apache慢或者假死不响应的情况,提高兼容性。

 

2.打开/www/server/apache/conf/extra/httpd-mpm.conf修改

ThreadsPerChild 500

MaxConnectionsPerChild 100000

此处主要是为了解决开启了AcceptFilter参数后如果ThreadsPerChild的值大于512会频繁重启apache的问题,ThreadsPerChild是apache工作进程的线程数最大值到1920超出后会报错,MaxConnectionsPerChild是工作进程最大处理多少请求后载入新的进程。

 

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}