tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From QM <>
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=,port=0,localport=443]]
: ignored exception: Too many open files
: 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").



software  --
tech news --

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message