小编Nat*_*han的帖子

如何不获得这么多 apache CLOSE_WAIT 连接?

netstat 显示有 153 个连接处于 CLOSE_WAIT 状态。连接永远不会关闭。因此,超时服务器充满了这些连接,这些连接填满了 RAM,现在网站没有加载。

netstat 显示许多类似以下内容:

tcp      160      0 my_server_name:http         my_server_name:51584        CLOSE_WAIT
tcp      160      0 my_server_name:http         my_server_name:51586        CLOSE_WAIT
tcp        0      0 my_server_name:http         my_server_name:50827        CLOSE_WAIT
tcp        0      0 my_server_name:http         my_server_name:50830        CLOSE_WAIT
tcp      312      0 my_server_ip.static.:http rate-limited-proxy-72:61249 CLOSE_WAIT
tcp      382      0 my_server_ip.static.:http b3090792.crawl.yahoo.:58663 CLOSE_WAIT
tcp      382      0 my_server_ip.static.:http b3090792.crawl.yahoo.:34655 CLOSE_WAIT
tcp      382      0 my_server_ip.static.:http b3090792.crawl.yahoo.:56681 CLOSE_WAIT
tcp      382      0 my_server_ip.static.:http b3090792.crawl.yahoo.:40829 CLOSE_WAIT
tcp      576      0 my_server_ip.static.:http b3090792.crawl.yahoo.:38278 CLOSE_WAIT
tcp       47      0 my_server_ip.static.:http 203.200.5.143.ill-bgl:49379 CLOSE_WAIT
Run Code Online (Sandbox Code Playgroud)

如果我查看 appache error_log,在 CLOSE_WAIT 情况出现之前,有如下几行 …

apache-2.2

11
推荐指数
1
解决办法
4万
查看次数

标签 统计

apache-2.2 ×1