[jboss-jira] [JBoss JIRA] (DROOLS-461) Memory Leak in Drools6.0.1-JavaLexer- Whenever application is restarted in websphere

Mario Fusco (JIRA) issues at jboss.org
Fri Apr 4 06:17:13 EDT 2014


    [ https://issues.jboss.org/browse/DROOLS-461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12959225#comment-12959225 ] 

Mario Fusco commented on DROOLS-461:
------------------------------------

I must admit you're last comment it's really surprising to me and I don't see how this could be possible.
According to IBM an object is a GC root if at least one of this conditions is true http://pic.dhe.ibm.com/infocenter/isa/v4r1m0/index.jsp?topic=%2Fcom.ibm.java.diagnostics.memory.analyzer.doc%2Fgcroots.html and I don't see anything there that could be applicable to the JavaLexer.

The only point where we create a JavaLexer is in the JavaExprAnalyzer:

{code}
    private JavaParser parse(final String expr) {
        final CharStream charStream = new ANTLRStringStream(expr);
        final JavaLexer lexer = new JavaLexer( charStream );
        final TokenStream tokenStream = new CommonTokenStream( lexer );
        return new JavaParser( tokenStream );
    }
{code}

and after we have done the parsing the JavaParser, CommonTokenStream and JavaLexer instances created there are all garbage collectable.
Can you please send (via dropbox or other similar file sharing platform) the heapdump of your JVM. Without it is impossible for me to figure out what's happening in your case.

Thanks again,
Mario

                
> Memory Leak in Drools6.0.1-JavaLexer- Whenever application is restarted in websphere
> ------------------------------------------------------------------------------------
>
>                 Key: DROOLS-461
>                 URL: https://issues.jboss.org/browse/DROOLS-461
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 6.0.1.Final
>         Environment: Websphere7.0, Java
>            Reporter: jacob sukumar
>            Assignee: Mario Fusco
>
> Everytime we restarted the application on websphere and taking the heap dumps, we could able to see around 8MB of JavaLexer(org/drools/compiler/rule/builder/dialect/java/parser/JavaLexer) is leaking. Let us say if we restarted the application for 3 times, (8*3)24MB heap memory is leaking.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list