• Post Reply Bookmark Topic Watch Topic
  • New Topic

max number of concurrent socket connections in java nio ?  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I got a really disturbing issue with Java Nio, I have googled a lot without any luck.

The problem is i want to create a NIO server, that waiting for connections from clients. Everything is fine, until the concurrent number of socket connections to the server reach the exact number: 62. If number of socket connections is over 62, cpu usage will become 100%, although the client side just keep the connections alive, no read/write to the SocketChannel. It's observerd that, though cpu usag is 100%, the server is not slow down, and if client side do read/write to socket channel, everything is normal. The only annoying thing is i dont know why cpu usage becomes 100%. The memory usage of the server is only 20Mb+, available mem in the system is 400+ Mb, I have set JVM option to adjust max memory usage e.g: -Xms64m -Xmx256m

anyone can give me a guideline ?

thank you
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!