Well I have been having a problem with our JBoss server stop responding every couple of days. I think it is that we are running out of threads, but I am not certain. I have done some thread dumping and noticed that we run about 100 or so threads during normal operations, but while it is hanging we have threads hanging all over the place. Most of these seem to be Tomcat just waiting for something or another, but not sure why. Anyway the symptoms I am seeing are these
14:47:53,658 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl [FormatId=257, GlobalId=triton//74009, BranchQual=] timed out. status=STATUS_ACTIVE ERROR [STDERR] java.net.SocketException: Invalid argument 14:37:19,189 ERROR [STDERR] at java.net.PlainSocketImpl.socketSetOption(Native Method) 14:37:19,190 ERROR [STDERR] at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:240) 14:37:19,190 ERROR [STDERR] at java.net.Socket.setTcpNoDelay(Socket.java:771) 14:37:19,191 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.setSocketOptions(PoolTcpEndpoint.java:468)