You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Douglas Ferguson <do...@douglasferguson.us> on 2010/03/07 17:23:23 UTC
Too Many Files Open
Does anybody know what the root cause of this exception would be?
java.net.SocketException: Too many open files
at java.net.Socket.createImpl(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
at org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$1.doit(ControllerThreadSocketFactory.java:91)
at org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$SocketTask.run(ControllerThreadSocketFactory.java:158)
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
Re: Too Many Files Open
Posted by Ken Krugler <kk...@transpac.com>.
On Mar 7, 2010, at 8:23am, Douglas Ferguson wrote:
> Does anybody know what the root cause of this exception would be?
Not enough file descriptors for all of the open files/sockets.
It could be that you've got a very low limit set - check it with the
"ulimit -a" command (on Linux/Mac, at least).
Or you could be leaking sockets/files - see what the "lsof" command
returns (list of open files).
-- Ken
>
> java.net.SocketException: Too many open files
> at java.net.Socket.createImpl(Unknown Source)
> at java.net.Socket.<init>(Unknown Source)
> at java.net.Socket.<init>(Unknown Source)
> at
> org
> .apache
> .commons
> .httpclient
> .protocol
> .DefaultProtocolSocketFactory
> .createSocket(DefaultProtocolSocketFactory.java:80)
> at
> org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory
> $1.doit(ControllerThreadSocketFactory.java:91)
> at
> org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory
> $SocketTask.run(ControllerThreadSocketFactory.java:158)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
--------------------------------------------
Ken Krugler
+1 530-210-6378
http://bixolabs.com
e l a s t i c w e b m i n i n g
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org