users@glassfish.java.net

Re: "Too many open files" error in Linux

From: <glassfish_at_javadesktop.org>
Date: Mon, 07 Jun 2010 06:20:27 PDT

> What should I do to get rid of it ?

Perhaps you should check what is causing it.
Do a lsof (ls open files)

My GlassFish is installed in a directory glassfishv3

So I : lsof |grep glassfishv3 | wc -l

My output is 563, so GlassFish 3 has opened 563 files for a newly started GlassFish.


Perhaps you can monitor this value and see if GlassFish is gradually leaking file descriptors. (Which is possible even in Java)
If you could prove this, and if I ever meet you, I will buy you a cold beer :)

regards
Richard.
[Message sent by forum member 'rjdkolb']

http://forums.java.net/jive/thread.jspa?messageID=473142