users@glassfish.java.net

Re: Too many open files issue

From: José Luis Cetina <maxtorzito_at_gmail.com>
Date: Fri, 12 Oct 2012 07:12:27 -0500

Hi to all, I remember this issue time ago, I don't know if is the same,
when I reported this issue the problem was in the log, I remember that I
enabled an option something like "write the console info in a log file" (I
don't remember exactly) and that was the problem because glassfish was open
a new file every time and never close the opened file. The option what I
mention wasn't enable by default, I reported this bug like 2 years ago. My
solution in that moments was disabled the checked option.

What I can tell you that the problem was when glassfish write content on
the file, glassfish never close the file.

Sorry my english.
El 12/10/2012 04:27, <forums_at_java.net> escribió:

> Hi, just to give a small feedback on this one:) We expiriance the same
> problem on GF3.1.2.2 build5...
> [#|2012-10-04T15:53:52.118+**0200|WARNING|glassfish3.1.2|**
> com.sun.grizzly.config.**GrizzlyServiceListener|_**
> ThreadID=12;_ThreadName=**Thread-3;|GRIZZLY0006:
> Exception accepting channel java.io.IOException: Too many open files at
> sun.nio.ch.**ServerSocketChannelImpl.**accept0(Native Method) at
> sun.nio.ch.**ServerSocketChannelImpl.**accept(**
> ServerSocketChannelImpl.java:**145)
> at
> com.sun.grizzly.**TCPSelectorHandler.**acceptWithoutRegistration(**
> TCPSelectorHandler.java:745)
> at
> com.sun.enterprise.v3.**services.impl.monitor.**
> MonitorableSelectorHandler.**acceptWithoutRegistration(**
> MonitorableSelectorHandler.**java:99)
> at
> com.sun.grizzly.http.**SelectorThreadHandler.**onAcceptInterest(**
> SelectorThreadHandler.java:99)
> at
> com.sun.grizzly.**SelectorHandlerRunner.**handleSelectedKey(**
> SelectorHandlerRunner.java:**301)
> at
> com.sun.grizzly.**SelectorHandlerRunner.**handleSelectedKeys(**
> SelectorHandlerRunner.java:**263)
> at
> com.sun.grizzly.**SelectorHandlerRunner.**doSelect(**
> SelectorHandlerRunner.java:**200)
> at com.sun.grizzly.**SelectorHandlerRunner.run(**
> SelectorHandlerRunner.java:**132)
> at
> java.util.concurrent.**ThreadPoolExecutor$Worker.**
> runTask(ThreadPoolExecutor.**java:886)
> at
> java.util.concurrent.**ThreadPoolExecutor$Worker.run(**
> ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.**java:619) |#] Any attempt of the
> application
> to open file ended with this kind of error, because happened during night
> and
> Im not a linux guru:) I didnt know how to clean the tx files, so I tried
> restarting the machine and starting gf again but no luck, then comes the
> fun
> part I stop again glasfish and start gf 3.0.1 and this one worked without
> any
> problem... Blaze
>
> --
>
> [Message sent by forum member 'baze985']
>
> View Post: http://forums.java.net/node/**891367<http://forums.java.net/node/891367>
>
>
>