You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Arno Schatz <ga...@gmx.net> on 2004/01/10 12:32:58 UTC

[httpCommons] SocketException

Hi,

I get the Exception below from time to time, when my programm accesses serveral Sites at 
the same time, using the "HttpClient.executeMethod" method. Sorry I don't know much about 
sockets. Is my Computer running out of connections? Where can I tune the max connections 
or see how many is max?

I am using win98se.

-Arno


java.net.SocketException: No buffer space available (maximum connections reached?):
connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
	at java.net.Socket.connect(Socket.java:452)
	at java.net.Socket.connect(Socket.java:402)
	at java.net.Socket.<init>(Socket.java:309)
	at java.net.Socket.<init>(Socket.java:124)
	at 
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:105)
	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:683)
	at 
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:313)
	at 
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:187)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:468)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:355)
	at org.jivan.html.ua.HTMLUserAgent.create(HTMLUserAgent.java:58)
	... 8 more


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org