1. 程式人生 > >apache經常卡死解決辦法

apache經常卡死解決辦法

(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

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