java.net.SocketTimeoutException: Read timed out

Posted by Rafael Soto on Stack Overflow See other posts from Stack Overflow or by Rafael Soto
Published on 2010-03-20T02:25:39Z Indexed on 2010/03/20 2:31 UTC
Read the original article Hit count: 547

Hi Folks,

I have an application with client server architecture. The client use Java Web Start with Java Swing / AWT and the sert uses HTTP server / Servlet with Tomcat. The communication is made from the serialization of objects, create a ObjectOutput serializes a byte array and send to the server respectively called the ObjectInputStream and deserializes.

The application follows communicating correctly to a certain time of concurrency where starting to show error "SocketException read timeout". The erro happens when the server invoke the method ObjectInputStream.getObject() in my servlet doPost method.

The tomcat will come slow and the errors start to decrease server response time until the crash time where i must restart the server and after everything works.

Someone went through this problem ?

© Stack Overflow or respective owner

Related posts about tomcat

Related posts about socketexception