Socket Connection refused in high-loaded servers# Java - 爪哇娇娃
l*b
1 楼
Hi, all,
I encountered some "java.net.ConnectException: Connection refused: connect"
in the following situations:
1. Create about 350 requests to Tomcat server at the same time by sockets
2. Create about 200 requests to standalone Java ServerSocket at the same
time
It seems there is limitation of the max connections to server or
ServerSocket instance. Could you please advise me how many the max
connections are? And how to configure them in ServerSocket or Tomcat server?
Thank you in advance.
I encountered some "java.net.ConnectException: Connection refused: connect"
in the following situations:
1. Create about 350 requests to Tomcat server at the same time by sockets
2. Create about 200 requests to standalone Java ServerSocket at the same
time
It seems there is limitation of the max connections to server or
ServerSocket instance. Could you please advise me how many the max
connections are? And how to configure them in ServerSocket or Tomcat server?
Thank you in advance.