dev@glassfish.java.net

Re: File Descriptor leak?

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Thu, 17 Aug 2006 15:26:04 -0700

Jim Driscoll wrote On 08/17/06 10:23,:

>
> There's a thread on serverside,
> http://www.theserverside.com/news/thread.tss?m=c.reply&thread_id=41748#215840
>
>
> where a user says:
>
> Are they using it on Linux server ? SJAS is not "rocket solid" at all,
> it's leaking file descriptors as a sieve. All versions 8.x are
> affected. We tried Glassfish as well, but it had the same problem.
> It's very easy to reproduce it - just install SJAS or Glassfish and
> open admin console. Every time a page is accessed the number of open
> file descriptors are increased. In production after some time the
> server drains all file descriptors and it fails with IO exception "too
> many file descriptors".
>
>
> I just got done talking with Greg Murray, he says he's seeing this too
> on his web-facing app.
>
> Could someone check this out? Sounds like a serious bug... (Note
> that other folks have also replied saying they haven't seen it... So
> may be a specific configuration issue)


This seems to be a known NIO bug. The J2SE folks have pointed me to:

  http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6215050
  ("SocketChannel created in CLOSE_WAIT and never cleaned up.. File
Descriptor leak")

which was fixed in JDK 6 and JDK 5.0u7.


Jan


>
> Jim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>