• Post Reply Bookmark Topic Watch Topic
  • New Topic

max munber of sockets  RSS feed

 
william kane
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a limit on how many sockets one can open on a system using java sockets?
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Realistically, unless you're using java.nio.*, the limit is AFAIK the number of threads you can handle -- a few hundred to a few thousand, depending on the platform and the JVM you use.
- Peter
 
Van Glass
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is of course also limited to the number of available ports on a system. I believe the hard limit is 65535
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!