Hi,
Im' writing a NIO multiplayer game server which must support up to 1000 concurrent users. Currently I test the code on Windows XP Prof. SP2, and get the following exception when concurrent connections number is around 620:
1 2 3 4 5
| java.net.SocketException: No buffer space available (maximum connections reached?): connect at sun.nio.ch.Net.connect(Native Method) at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:464) at java.nio.channels.SocketChannel.open(SocketChannel.java:146) ... |
Could anybody please explain this and help to resolve the problem?
steel