由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Socket Connection refused in high-loaded servers
相关主题
socket and simple web browsersend() vs sendto()
请问一下Re: Client-Server and actionPerformed
A Simple Java Socket Issueone question
socket programing server-server怎么通讯?如何让两个socket并行执行thread
新手问题[合集] 有点糊涂了,一个程序能不能开多个server socket服务?
why it does not work?? :(((弱问socket
question on single thread & multithreadhow to transfer data between two sockets
Socket created/called in Servlet timed out[转载] Db2 里设置通信时TCP/IP的端口和远端用JDBC问题
相关话题的讨论汇总
话题: connection话题: tomcat话题: server话题: refused
进入Java版参与讨论
1 (共1页)
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?

1 (共1页)
进入Java版参与讨论
相关主题
[转载] Db2 里设置通信时TCP/IP的端口和远端用JDBC问题新手问题
How to connect to SQL2000?why it does not work?? :(((
请问JDBC连SQL server的connect reset问题如何解决? (转载)question on single thread & multithread
求救:Connection Pooling 没有close resultset 怎么解决Socket created/called in Servlet timed out
socket and simple web browsersend() vs sendto()
请问一下Re: Client-Server and actionPerformed
A Simple Java Socket Issueone question
socket programing server-server怎么通讯?如何让两个socket并行执行thread
相关话题的讨论汇总
话题: connection话题: tomcat话题: server话题: refused