Redian新闻
>
Socket Connection refused in high-loaded servers
avatar
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.
avatar
g*g
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.

avatar
l*b
3
Hi, goodbug, thank you. Could you advise where to check OS TCP connection
setting and Tomcat config file for connection?
avatar
l*b
4
Hi, goodbug, thank you. Could you also advise me where is the OS setting of
TCP and Tomcat file for connections?
avatar
g*g
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?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。