Hi Niklas,
I followed the instructions found in the FAQ, although I think that this is
not the root of the problem. The FAQ says something about TIME_WAIT, not
CLOSE_WAIT. I don't know if these two are the same. Another thing that makes
me think this is not a timeout problem is the effect that the connections
listed in CLOSE_WAIT state remain in this state forever, not just for a
couple of minutes.
I tried Juliens advice to make a thread dump using jstack, but got several
exceptions
----- Original Message -----
From: "Niklas Gustavsson" <[EMAIL PROTECTED]>
To: <[email protected]>; <[EMAIL PROTECTED]>
Sent: Tuesday, July 29, 2008 5:37 PM
Subject: Re: NioSocketAcceptor - Too many open files
On Tue, Jul 29, 2008 at 5:37 PM, Niklas Gustavsson <[EMAIL PROTECTED]>
wrote:
On Tue, Jul 29, 2008 at 4:57 PM, Emmanuel Lecharny <[EMAIL PROTECTED]>
wrote:
You have options, though :
- either you increase this ulimit, or set it to unlimited,
- or you lower the tcp-time-wait value so that the sockets are closed
faster.
Socket usually are kept open for a little while (I think it's 300
seconds on
linux, but not sure), waiting for the client to close the connection.
Going
down to 30 seconds should be OK.
http://mina.apache.org/ftpserver/faq.htm
Oh, crap, that should have been:
http://mina.apache.org/ftpserver/faq.html
/niklas