title: java.net.SocketTimeoutException: Read timed out
body: <p>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. </p>
  
  <p>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. </p>
  
  <p>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. </p>
  
  <p>Someone went through this problem ?</p>
  
  <p>Client Code</p>
  
  <pre><code>URLConnection conn =  url.openConnection();
  conn.setDoOutput(true);
  
  OutputStream os = conn.getOutputStream();
  ObjectOutputStream oss = new ObjectOutputStream(os);
  
  oss.writeUTF("protocol header sample");
  
  oss.writeObject(_parameters);
  oss.flush();
  oss.close();
  </code></pre>
  
  <p>Server Code</p>
  
  <pre><code>ObjectInputStream input = new ObjectInputStream(_request.getInputStream());
  String method = input.readUTF();
  
  parameters = input.readObject();
  </code></pre>
  
  <p>input.readObject() is where the error is</p>