apache经常卡死解决办法

来源:互联网 发布:java 成员方法 编辑:程序博客网 时间:2024/05/01 23:26

(windows)在dos下运行netstat -ant|find "CLOSE_WAIT"的数量,如果很多,并且很长时间不关闭,尝试添加以下配置。


关于TIME_WAIT、CLOSE_WAIT各种状态参考以下文章:

http://www.cnblogs.com/sunxucool/p/3449068.html

http://www.cnblogs.com/thinksasa/archive/2013/03/05/2944880.html

TCP状态迁移,CLOSE_WAIT & FIN_WAIT2 的问题

http://blog.chinaunix.net/uid-24585858-id-2125514.html


apache优化:

http://www.365mini.com/page/apache-concurrency-configuration.htm


(假如有通道异常, 阻塞等问题, 请设置如下配置.)

AcceptFilter http none 
AcceptFilter https none 
EnableSendfile off 
EnableMMAP off 
0 0
原创粉丝点击