在重启websphere7.0服务器后,发现怎么也启不起来,提示9080端口占用,可是was的进程已不存在。
后用命令:netstat -anp|grep 9080 发现有一个连接状态为FIN_WAIT1,一直没有释放,百度了很多资料都没有手动关闭这种连接的方法,只能重启服务器。
下面是从国外网站找到的解决方案,不用重启服务器:
1、sysctl -a |grep tcp_max_orph 记下 net.ipv4.tcp_max_orphans 的值 赋给orig_orphans
2、sysctl -w net.ipv4.tcp_max_orphans=0 然后等待FIN_WAIT1的消失,可以用 netstat -np|grep 9080 反复查看,直到没有任何条目
3、
sysctl -w net.ipv4.tcp_max_orphans=$orig_orphans