java.nio.channels: Implementation allows only 63 channels per Selector
I am using the new java.nio.channels package to write a server application
that needs to support thousands of concurrent users. These are not short
running HTTP requests, but rather long running sessions. The way to go is
to use non-blocking IO. After spending some time figuring out how to use
the package I tried running some stress tests. Everything was fine until
I hit it with more then 62 users, when I did I got the following error:
"Implementation allows only 63 channels per Selector".
What is the deal with this? Am I now supposed to have multiple threads with
one Selector per thread? This doesn't really solve my problem, it just delays
Anyone got an idea on why this limitation exists?
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center