On 12/23/06, Vinod Panicker <[EMAIL PROTECTED]> wrote:

On 12/22/06, Trustin Lee <[EMAIL PROTECTED]> wrote:
> On 12/22/06, Vinod Panicker <[EMAIL PROTECTED]> wrote:
> >
> > On 12/22/06, Michael Bauroth <[EMAIL PROTECTED]> wrote:
> > > Ok,
> > >
> > > have new insights now:
> > >
> > > The problem occurs in first line because of a low ulimit value.
> > >
> > > On the other side Mina or the underlying socket has a non zero
SoLinger
> > > value set. It seems, that CloseFuture already returns isClosed and
> > > isReady, but the underlying socket is still waiting a given amount
of
> > > time for a graceful shutdown of the tcp connection itself. So the
still
> > > closed and the new created sessions accumulate to greater number
than
> > > expected.
> > >
> > > When I set SoLinger to 0, the problem doesn't occur anymore. On the
> > > other side I receive now IoExceptions over
> > > SessionHandler.exceptionCaught() method, that the connection was
> > > resetted. So far it's true, but not very helpful, because I must now
> > > catch the exceptions silently instead of showing them.
> > >
> > > Any additional ideas here?
> >
> > I'm not sure I understand what exactly are you looking for.
> >
> > On an internet server, you will always have to account for TCP
> > connections going into TIME_WAIT, FIN_WAIT, FIN_WAIT_2 and other
> > states due to problems in the network or buggy implementations.
> >
> > So keep in mind that the limit on the number of open files on the
> > system should allow for some headroom for a given concurrency level.
>
>
> If using Linux, this blog entry I wrote might help people here:
>
> http://trustinlee.blogspot.com/2006/11/linux-default-ulimit.html

It would be great if we can put this up on the wiki since it's a
standard issue when running servers on Linux.


Sounds like a good idea.  Let me take care of it.

Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6

Reply via email to