l*****b 发帖数: 82 | 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. | g*****g 发帖数: 34805 | 2 Check if your OS has TCP connection limit, check if your server can
handle that many simultaneous connections, then you can check tomcat
parameters like maxThreads
"
server?
【在 l*****b 的大作中提到】 : 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.
| l*****b 发帖数: 82 | 3 Hi, goodbug, thank you. Could you advise where to check OS TCP connection
setting and Tomcat config file for connection? | l*****b 发帖数: 82 | 4 Hi, goodbug, thank you. Could you also advise me where is the OS setting of
TCP and Tomcat file for connections? | g*****g 发帖数: 34805 | 5 It depends on your OS and you can google on it.
【在 l*****b 的大作中提到】 : Hi, goodbug, thank you. Could you also advise me where is the OS setting of : TCP and Tomcat file for connections?
|
|