装上迅雷加速后,一起动Tomcat就进入死循环,无限报错
2011-5-14 23:20:51 org.apache.tomcat.util.net.JIoEndpoint$Acceptor run
严重: Socket accept failed
java.net.SocketException: select failed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:390)
at java.net.ServerSocket.implAccept(ServerSocket.java:453)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:59)
at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:211)
at java.lang.Thread.run(Thread.java:619)
卸载后Tomcat恢复正常
这问题该怎么解决?
------解决方案--------------------------------------------------------
出现这种错误,可能跟tcp/ip损坏有关。我也是用迅雷的加速。导致我启动tomcat一直上面提示的错误。
网上有说把ipv6给卸载掉,但是试过了没用。重装tcp/ip也没用
解决方法:
需要为tomcat添加额外的启动参数:-Djava.net.preferIPv4Stack=true
本人亲测