开发者

I/O ERROR: SOCKET ERRORS

We have J2EE Web application deployed on JBOSS 4.0.2 server. From last few days The application suddenly stops. we are getting following errors in log.

开发者_运维百科java.net.SocketException: Software caused connection abort: recv failed

Due to above socket errors application is not able to connect database. Restarting jboss application also does not help. To resolve socket error we have to restart production machine. After restarting production machine it works perfectly.

What could be reason for above socket errors?


That error essentially means somebody tried to read or write from a closed socket (it's Windows speak for "connection reset"). There are a lot of reasons that can happen though, and it's impossible to say exactly why your application is doing it. Some things you might try checking:

  • if you have multiple threads reading and writing to the same socket, make sure one of them isn't closing it
  • try turning off Nagle's algorithm; I've seen this error happen because someone closed the socket before the OS finished writing to it (you can do that with setTcpNoDelay)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜