java.net.SocketTimeoutException: Read timed out

后端 未结 2 1833
情歌与酒
情歌与酒 2021-02-15 19:42

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 communicat

2条回答
  •  梦谈多话
    2021-02-15 20:01

    I think During high Concurrency, the Socket Timeout set in Tomcat is Expired and the connection is closed. The next read by Tomcat for that connection is greater than the server socket timeout specified in the server.
    If you want to avoid this problem you have to increase the timeout on the server-side which is expired in your case. But not advisable.
    BTW you did not give enough information. Did you increase the no of threads for connection in Tomcat? If you did, this surely would happen.

提交回复
热议问题