Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection refused in high-loaded Tomcat server

 
Sky Loi
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • 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.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what you mean by SErverSocket, but Tomcat connections and their pools are configured in server.xml
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic