iis服务器80端口一直与本机建立连接
iis服务器出现下面的现象,80端口一直与本机的端口连接,其它机器访问192.168.2.166非常慢
TCP 192.168.2.166:80 192.168.2.166:50275 CLOSE_WAIT 4
TCP 192.168.2.166:80 192.168.2.166:50276 ESTABLISHED 4
TCP 192.168.2.166:80 192.168.2.166:50277 ESTABLISHED 4
TCP 192.168.2.166:80 192.168.2.166:50278 CLOSE_WAIT 4
TCP 192.168.2.166:80 192.168.2.166:50279 CLOSE_WAIT 4
TCP 192.168.2.166:80 192.168.2.166:50280 CLOSE_WAIT 4
TCP 192.168.2.166:80 192.168.2.166:50281 ESTABLISHED 4
TCP 192.168.2.166:80 192.168.2.166:50282 ESTABLISHED 4
TCP 192.168.2.166:80 192.168.2.166:50283 CLOSE_WAIT 4
TCP 192.168.2.166:80 192.168.2.166:50284 ESTABLISHED 4
TCP 192.168.2.166:80 192.168.2.166:50285 ESTABLISHED 4
TCP 192.168.2.166:80 192.168.2.166:50286 ESTABLISHED 4
TCP 192.168.2.166:80 192.168.2.166:50287 ESTABLISHED 4
TCP 192.168.2.166:80 192.168.2.166:50288 ESTABLISHED 4
TCP 192.168.2.166:80 192.168.2.166:50289 ESTABLISHED 4
TCP 192.168.2.166:80 192.168.2.166:50290 ESTABLISHED 4
TCP 192.168.2.166:80 192.168.2.166:50291 ESTABLISHED 4
TCP 192.168.2.166:139 0.0.0.0:0 LISTENING 4
TCP 192.168.2.166:50140 192.168.2.251:1433 ESTABLISHED 2036
TCP 192.168.2.166:50160 192.168.2.251:1433 ESTABLISHED 2036
TCP 192.168.2.166:50262 192.168.2.251:1433 ESTABLISHED 2036
TCP 192.168.2.166:50274 192.168.2.166:80 FIN_WAIT_2 2036
TCP 192.168.2.166:50275 192.168.2.166:80 FIN_WAIT_2 2036
TCP 192.168.2.166:50276 192.168.2.166:80 ESTABLISHED 2036
TCP 192.168.2.166:50277 192.168.2.166:80 ESTABLISHED 2036
TCP 192.168.2.166:50278 192.168.2.166:80 FIN_WAIT_2 2036
TCP 192.168.2.166:50279 192.168.2.166:80 FIN_WAIT_2 2036
TCP 192.168.2.166:50280 192.168.2.166:80 FIN_WAIT_2 2036
TCP 192.168.2.166:50281 192.168.2.166:80 ESTABLISHED 2036
TCP 192.168.2.166:50282 192.168.2.166:80 ESTABLISHED 2036
TCP 192.168.2.166:50283 192.168.2.166:80 FIN_WAIT_2 2036
TCP 192.168.2.166:50284 192.168.2.166:80 ESTABLISHED 2036
TCP 192.168.2.166:50285 192.168.2.166:80 ESTABLISHED 2036
TCP 192.168.2.166:50286 192.168.2.166:80 ESTABLISHED 2036
TCP 192.168.2.166:50287 192.168.2.166:80 ESTABLISHED 2036
TCP 192.168.2.166:50288 192.168.2.166:80 ESTABLISHED 2036
TCP 192.168.2.166:50289 192.168.2.166:80 ESTABLISHED 2036
TCP 192.168.2.166:50290 192.168.2.166:80 ESTABLISHED 2036
TCP 192.168.2.166:50291 192.168.2.166:80 ESTABLISHED 2036
TCP 192.168.2.166:50299 192.168.2.251:1433 ESTABLISHED 2036
TCP 192.168.2.166:50302 192.168.2.251:1433 ESTABLISHED 2036
日志中也很奇怪,服务器会自己访问http://192.168.2.166/news/LocalNews.aspx/SearchTitle.aspx这个页面
2010-03-27 09:01:12 192.168.2.166 GET /news/LocalNews.aspx/SearchTitle.aspx - 80 - 192.168.2.166 - 200 0 64 100140
2010-03-27 09:01:13 192.168.2.166 GET /news/LocalNews.aspx/SearchTitle.aspx - 80 - 192.168.2.166 - 200 0 64 100203
2010-03-27 09:01:13 192.168.2.166 GET /news/LocalNews.aspx/SearchTitle.aspx - 80 - 192.168.2.166 - 200 0 64 100359
2010-03-27 09:01:13 192.168.2.166 GET /news/LocalNews.aspx/SearchTitle.aspx - 80 - 192.168.2.166 - 200 0 64 100359
2010-03-27 09:01:13 192.168.2.166 GET /news/LocalNews.aspx/SearchTitle.aspx - 80 - 192.168.2.166 - 200 0 64 100359
2010-03-27 09:01:13 192.168.2.166 GET /news/LocalNews.aspx/SearchTitle.aspx - 80 - 192.168.2.166 - 200 0 64 100359
2010-03-27 09:01:13 192.168.2.166 GET /news/LocalNews.aspx/SearchTitle.aspx - 80 - 192.168.2.166 - 200 0 64 100359
2010-03-27 09:01:13 192.168.2.166 GET /news/LocalNews.aspx/SearchTitle.aspx - 80 - 192.168.2.166 - 200 0 64 100281
2010-03-27 09:01:13 192.168.2.166 GET /news/LocalNews.aspx/SearchTitle.aspx - 80 - 192.168.2.166 - 200 0 64 100390
2010-03-27 09:01:13 192.168.2.166 GET /news/LocalNews.aspx/SearchTitle.aspx - 80 - 192.168.2.166 - 200 0 0 140
2010-03-27 09:01:13 192.168.2.166 GET /news/LocalNews.aspx/SearchTitle.aspx - 80 - 192.168.2.166 - 200 0 64 718
2010-03-27 09:01:14 192.168.2.166 GET /news/LocalNews.aspx/SearchTitle.aspx - 80 - 192.168.2.166 - 200 0 64 100125
2010-03-27 09:01:14 192.168.2.166 GET /news/LocalNews.aspx/SearchTitle.aspx - 80 - 192.168.2.166 - 200 0 64 100109
2010-03-27 09:01:14 192.168.2.166 GET /news/LocalNews.aspx/SearchTitle.aspx - 80 - 192.168.2.166 - 200 0 64 100125
只有把服务重启后才正常,请帮忙分析下这是什么原因
[解决办法]
请你注意这条记录
TCP 192.168.2.166:50274 192.168.2.166:80 FIN_WAIT_2 2036
2036指的就是PID,也就是说在连接你IIS的那个进程。你查一下这个是什么进程就可以了。同时我发现这个进程还在连接数据库呢。
另外,你的站点访问慢不一定跟IIS连自己有关系。
[解决办法]
应该是在访问数据库后没有关闭连接,造成资源占用越来越多,就慢了
在访问完数据库后要关闭数据库连接