This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes max number of concurrent socket connections in java nio ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "max number of concurrent socket connections in java nio ?" Watch "max number of concurrent socket connections in java nio ?" New topic
Author

max number of concurrent socket connections in java nio ?

lee.boehm
Greenhorn

Joined: Jun 21, 2007
Posts: 1
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
lee
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: max number of concurrent socket connections in java nio ?
 
Similar Threads
Anybody interested in a sockets discussion ?
Unblocking sockets
NIO question
Server CPU Load, Memory Usage
Java Socket Close Detection, Late FINs