A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Developer Certification (SCJD/OCMJD)
java.net.SocketException: No buffer space available
Joined: Oct 18, 2002
Dec 17, 2002 03:59:00
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
Joined: Apr 20, 2000
Dec 17, 2002 08:20:00
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.
Joined: Dec 03, 2003
Oct 01, 2004 08:30:00
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
I agree. Here's the link:
subject: java.net.SocketException: No buffer space available
java.net.SocketException: No buffer space available (maximum connections reached?): connect
Question about a SocketException
java.net.SocketException: No buffer space available (maximum connections reached?): JVM_Bind
running a rmi sample
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013