Windows XP SP3 TCP/IP No buffer space available
Posted
by
Natalia
on Server Fault
See other posts from Server Fault
or by Natalia
Published on 2012-04-05T06:54:35Z
Indexed on
2012/04/11
11:33 UTC
Read the original article
Hit count: 335
windows-xp
|tcpip
I have the exactly same problem as here: Windows XP TCP/IP No buffer space available
On Windows XP Pro, SP3 if one does an experiment where one tries to open TCP/IP sockets in a loop (bascially, listen port 7000, listen port 7001, etc.)
After approx 649 open sockets, one will start getting errors: No buffer space available (maximum connections reached?)
I've tried to edit the registry as described here http://smallvoid.com/article/winnt-tcpip-max-limit.html I set MaxUserPort = 65534 and MaxFreeTcbs = 2000, but it didn't help.
What else can I do? I need 1000 server sockets.
Here is the error stack:
05.04.2012 10:23:57 java.net.SocketException: No buffer space available (maximum connections reached?): listen at sun.nio.ch.ServerSocketChannelImpl.listen(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:127) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52) at channelserver.NIOAppServer.initSelector(NIOAppServer.java:40) at channelserver.NIOAppServer.(NIOAppServer.java:27) at channelserver.NIOServer.main(NIOServer.java:433) at channelserver.NIOServer.main(NIOServer.java:438)
© Server Fault or respective owner