Bookmark Topic Watch Topic
  • New Topic

Socket Connection refused on high-loaded server  RSS feed

 
Sky Loi
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once.
CarefullyChooseOneForum
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!