tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From QM <qm...@brandxdev.net>
Subject Re: Stability problem due to "Too many open files"
Date Sat, 18 Sep 2004 18:02:01 GMT
On Sat, Sep 18, 2004 at 05:46:59AM -0400, Steve Job wrote:
: I get:
: SEVERE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=443]]
: ignored exception: java.net.SocketException: Too many open files
: java.net.SocketException: Too many open files

Someone else mentioned ulimit.  You could also look into tuning your
network stack.

Most OSs default to a very high wait time on closing disconnected
sockets.  For machines that serve large numbers of short-lived
connections (e.g. web servers) this can produce the very problem
you've experienced.

Reduce the TIME_WAIT interval, which should reduce the number of
sockets in CLOSE_WAIT state.  Since sockets == handle == "file" in the
Unix sense, this should reduce the number of files you have open at
any given time.

For Solaris the ndd param is tcp_time_wait_interval; in Linux it's
somewhere under /proc/sys/net/ (aka "sysctl net.something.other").

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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


Mime
View raw message