Wednesday, November 6, 2013

Resolution For: Java.net.SocketException: No buffer space avaliable ( maximum connection reached)

The solution is to increase the connection in windows 2008 server.

1) Open the windows command line and check how many ports are opened.
C:\>netsh int ipv4 show dynamicport tcp
Protocol tcp Dynamic Port Range
---------------------------------
Start Port      : 49152
Number of Ports : 16384

2) Increase the number of ports with the command
C:\>netsh int ipv4 set dynamicportrange protocol=tcp startport=5000 numberofports=60536

3) confirm again
C:\>netsh int ipv4 show dynamicport tcp
Protocol tcp Dynamic Port Range
---------------------------------
Start Port      : 5000
Number of Ports : 60536

No comments:

Post a Comment