{Q:}Linux中如何清理TCP状态为FIN_WAIT1状态的连接

292 views
Skip to first unread message

e6nian

unread,
Jan 25, 2010, 9:43:14 PM1/25/10
to TopLanguage
生产上遇到一个问题,多方搜索与求教,未果:
症状:
一台跑了websphere应用的RHEL5.4的机器,在重启websphere后报错,错误为无法绑定9080端口。(就是说这个端口还在被占用)
此时netstat -tpuln |grep 9080和ps axu |grep 9080 都无内容,说明已经没有应用进程占用这个端口了。
但是netstat -anp |grep 9080 可以看到有10多个记录为FIN_WAIT1的端口记录。说明这些端口还未释放(详见附件)

the same with
who knows How to terminate connections in FIN_WAIT1 state on tcp socket?
 I got the same problem with http://beowulf.es.embnet.org/listarchives/beowulf/1998/10/0074.html
nothing can do without reboot on 1998 ..and now I can't find solution


Yours Childish e6nian



e6nian

unread,
Jan 25, 2010, 9:50:17 PM1/25/10
to TopLanguage
http://info.nhooo.com/a/2009-06/30/163609h7854.html
这里讲到的方法:sysctl net.inet.ip.fw.dyn_keepalive=0
在linux下无效,说没有这个值,貌似这个是freebsd中的sysctl的设置
Yours Childish e6nian





2010/1/26 e6nian <e6n...@gmail.com>
Reply all
Reply to author
Forward
0 new messages