users@glassfish.java.net

Re: Too many open files issue

From: Lachezar Dobrev <l.dobrev_at_gmail.com>
Date: Thu, 11 Oct 2012 16:51:53 +0300

  Ohhh...
  It seems I am not the only one...

  Would you please state your OS, OS Version and JVM.

  How often do you get this issue?
  Did you manage to find a specific way to reproduce the problem?

  In Linux one can use 'lsof -p <pid>' to list the open files. I have
seen extensive 'anon_inode' and 'pipe' descriptors. Please check if
you're having the same issue, or a different one.

  Alexey Stashok is helping me pin-point the issue, and it would
probably be very beneficent if we had your input on this.

2012/10/11 John Lister <john.lister_at_kickstone.com>:
> Hi, I've just upgraded to 3.1.2.2 from 3.1 and I'm now experiencing a
> problem (especially with the admin console). I started getting a "too many
> open files" exception on many operations. A quick look at the open files
> shows over 4500 transaction extent files open. Restarting glassfish doesn't
> clear these up, only physically deleting them when glassfish is stopped.
>
> Is this normal? It strikes me that these should be temporary files and
> closed reasonably quickly. Any idea where to look to see what is causing
> this? The server runs mainly a number of web apps which are based around JSR
> using EJBs and CDI beans.
>
> Thanks
>
> John