[jboss-jira] [JBoss JIRA] (AS7-4018) Large amount of open files for jsf-impl on AS 7
Scott Marlow (JIRA)
jira-events at lists.jboss.org
Fri Mar 23 17:00:48 EDT 2012
[ https://issues.jboss.org/browse/AS7-4018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679063#comment-12679063 ]
Scott Marlow commented on AS7-4018:
-----------------------------------
If you have the heap.bin still, look at input/output streams. If I remember correctly, calling close on each stream will close the underlying file (immediately). When someone forgets to call close on the stream, the file will stay open until the stream is GCd (that is what I have seen in the past).
[http://www.eclipse.org/mat/] can be used to examine the heap dump file.
A few years ago, I found it helpful to find file leaks by instrumenting the FileInputStream/FileOutputStream class. In the FileInputStream/FileOutputStream constuctors created a new Exception and saved it in a class instance variable. Then, in the finalize method, if the stream didn't get closed, called printStackTrace() on the exception created in the constructor (showing the origin of the code that caused the leak). Perhaps you could find a [Byteman|http://www.jboss.org/byteman] way to do that. :)
> Large amount of open files for jsf-impl on AS 7
> -----------------------------------------------
>
> Key: AS7-4018
> URL: https://issues.jboss.org/browse/AS7-4018
> Project: Application Server 7
> Issue Type: Bug
> Components: JSF
> Affects Versions: 7.1.0.Final
> Reporter: Cody Lerum
> Assignee: Stan Silvert
> Fix For: 7.1.2.Final
>
>
> Basically what I am seeing is the amount of open files for the jsf-impl increasing steadily the longer the app server is running.
> /usr/local/jboss-as-7.1.0.Final/modules/com/sun/jsf-impl/main/jsf-impl-2.1.5-jbossorg-1.jar
> watching via
> ls -lha /proc/xxxx/fd | grep jsf-impl | wc
> I can see the file count increase with every page load.
> What info is needed to dig into this deeper?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list