Register / Login
Win a copy of
The Way of the Web Tester: A Beginner's Guide to Automating Tests
this week in the
Developer Certification (OCMJD)
java.net.SocketException: No buffer space available
posted 13 years ago
Any idea why since I implemented a connection factory I get sometimes the following exception on the client side at the call
objref = Naming.lookup(url);
It occurs at random.
The exception is:
java.rmi.ConnectIOException: Exception creating connection to: localhost; nested exception is: java.net.SocketException: No buffer space available (maximum connections reached?): connect at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:580) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171) at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313) at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) at java.rmi.Naming.lookup(Naming.java:84) at suncertify.viewer.FBNClient.getHandleToServer(FBNClient.java:229) at suncertify.viewer.FBNClient.<init>(FBNClient.java:72) at suncertify.viewer.FBNClient.main(FBNClient.java:269) Caused by: java.net.SocketException: No buffer space available (maximum connections reached?): connect
Peter den Haan
posted 13 years ago
This can be a bug in early versions of the JVM (was it 1.3 or 1.4?) -- upgrade to the latest version. Also, check that you cleanly close all the sockets and other connections that you use.
posted 12 years ago
I am also facing this problem
I read in one of the websites that we can increase buffer space by making some changes in the Windows registry.
Does anyone knows the changes required in the registry
Thanks in advance
java.net.SocketException: No buffer space available (maximum connections reached?): JVM_Bind
java.net.SocketException: No buffer space available (maximum connections reached?): connect
running a rmi sample
Question about a SocketException