出现这个问题已经好几个月了,每次都必须重新启动机器才能解决。
一般1-10天内都会出现以下现象,而且非重启服务器不能解决(重启IIS,回收进程池无用)
服务器对http连接会有无响应。在浏览器中表现为任何页面只能打开一部分,很多图片不能打开显示为红叉,且刷新会使图片随机的不能显示。
用迅雷等多线程下载工具尝试下载服务器上防止的文件,会有多个连接线程出现等待服务器无反应的情况:
2007-01-23 15:15:57 连接www.xxxx.net:80...
2007-01-23 15:15:58 连接www.xxxx.net:80成功
2007-01-23 15:15:58 GET /share/xxx.rar HTTP/1.1
2007-01-23 15:15:58 Accept: */*
2007-01-23 15:15:58 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
2007-01-23 15:15:58 Host: www.xxxx.net
2007-01-23 15:15:58 Range: bytes=9255578-
2007-01-23 15:15:58 Referer: http://www.xxxx.net/share
2007-01-23 15:15:58 Pragma: no-cache
2007-01-23 15:15:58 Cache-Control: no-cache
2007-01-23 15:15:58 Connection: close
而正常的线程(通常在故障时,正常线程只有1-2个),应该在随后收到服务器的回发然后传输数据:
2007-01-23 15:16:02 HTTP/1.1 206 Partial Content
2007-01-23 15:16:02 Content-Length: 27631118
2007-01-23 15:16:02 Content-Type: application/octet-stream
2007-01-23 15:16:02 Content-Range: bytes 9255578-36886695/36886696
2007-01-23 15:16:02 Last-Modified: Wed, 10 Jan 2007 13:48:08 GMT
2007-01-23 15:16:02 Accept-Ranges: bytes
2007-01-23 15:16:02 ETag: "fa633bf6bd34c71:e6b"
2007-01-23 15:16:02 Server: Microsoft-IIS/6.0
2007-01-23 15:16:02 X-Powered-By: ASP.NET
2007-01-23 15:16:02 Date: Tue, 23 Jan 2007 07:15:44 GMT
2007-01-23 15:16:02 Connection: close
故障时远程登陆到服务器上,CPU占用率并不高,IIS的进程占用率也不高,也没在系统日志中发现可疑记录……只运行了一个web站点,程序已经检查过……
每次都要重新启动机器才能保证正常运行,实在是搞的我心力憔悴了……有人能帮帮忙吗?
3 个解决方案
#1
服务器带宽或网站问题,影响了性能,具体可详聊
#2
楼上的,谢谢你的提醒。我想起来的确是有开过FTP帐号给游侠上面一个朋友。当时的初衷是方便他上传图片作外连。游侠那边的人流量比较大,我想乘机看看服务器能否承受的住……。目前的服务器带宽是10Mbps独享。刚才上去用netstat -s 看了看,发现TCP的信息如下:
TCP Statistics for IPv4
Active Opens = 12
Passive Opens = 45388
Failed Connection Attempts = 0
Reset Connections = 37999
Current Connections = 116
Segments Received = 11590509
Segments Sent = 19364044
Segments Retransmitted = 1725168
Passive Opens和Reset Connections的连接数好像很高,会是这个问题嘛?
TCP Statistics for IPv4
Active Opens = 12
Passive Opens = 45388
Failed Connection Attempts = 0
Reset Connections = 37999
Current Connections = 116
Segments Received = 11590509
Segments Sent = 19364044
Segments Retransmitted = 1725168
Passive Opens和Reset Connections的连接数好像很高,会是这个问题嘛?
#3
补充一句,登陆上去服务器的流量在150-500KB/S左右。。
TCP Statistics for IPv4
Active Opens = 14
Passive Opens = 53281
Failed Connection Attempts = 0
Reset Connections = 39947
Current Connections = 137
Segments Received = 12025098
Segments Sent = 19997421
Segments Retransmitted = 1858025
是否是因为很多人连接服务器上的图片所置?
TCP Statistics for IPv4
Active Opens = 14
Passive Opens = 53281
Failed Connection Attempts = 0
Reset Connections = 39947
Current Connections = 137
Segments Received = 12025098
Segments Sent = 19997421
Segments Retransmitted = 1858025
是否是因为很多人连接服务器上的图片所置?
#1
服务器带宽或网站问题,影响了性能,具体可详聊
#2
楼上的,谢谢你的提醒。我想起来的确是有开过FTP帐号给游侠上面一个朋友。当时的初衷是方便他上传图片作外连。游侠那边的人流量比较大,我想乘机看看服务器能否承受的住……。目前的服务器带宽是10Mbps独享。刚才上去用netstat -s 看了看,发现TCP的信息如下:
TCP Statistics for IPv4
Active Opens = 12
Passive Opens = 45388
Failed Connection Attempts = 0
Reset Connections = 37999
Current Connections = 116
Segments Received = 11590509
Segments Sent = 19364044
Segments Retransmitted = 1725168
Passive Opens和Reset Connections的连接数好像很高,会是这个问题嘛?
TCP Statistics for IPv4
Active Opens = 12
Passive Opens = 45388
Failed Connection Attempts = 0
Reset Connections = 37999
Current Connections = 116
Segments Received = 11590509
Segments Sent = 19364044
Segments Retransmitted = 1725168
Passive Opens和Reset Connections的连接数好像很高,会是这个问题嘛?
#3
补充一句,登陆上去服务器的流量在150-500KB/S左右。。
TCP Statistics for IPv4
Active Opens = 14
Passive Opens = 53281
Failed Connection Attempts = 0
Reset Connections = 39947
Current Connections = 137
Segments Received = 12025098
Segments Sent = 19997421
Segments Retransmitted = 1858025
是否是因为很多人连接服务器上的图片所置?
TCP Statistics for IPv4
Active Opens = 14
Passive Opens = 53281
Failed Connection Attempts = 0
Reset Connections = 39947
Current Connections = 137
Segments Received = 12025098
Segments Sent = 19997421
Segments Retransmitted = 1858025
是否是因为很多人连接服务器上的图片所置?