[richfaces-planning-issues] [JBoss JIRA] (RFPL-2646) Close HornetQ Threads properly [tomcat]

Jiří Štefek (JIRA) jira-events at lists.jboss.org
Wed Jan 16 06:57:22 EST 2013


     [ https://issues.jboss.org/browse/RFPL-2646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jiří Štefek reassigned RFPL-2646:
---------------------------------

    Assignee:     (was: Jiří Štefek)


It seem that it is a problem in HornetQ + Tomcat. I've found a similar problem here: https://community.jboss.org/thread/203986 , but the use-global-pools=false is already used in Metamer Push demo and it is not working (value true is also not working) https://github.com/richfaces/qa/blob/master/metamer/application/src/main/java/org/richfaces/demo/push/provider/CustomMessagingServerManagement.java#L97

I've tried to change the version of hornetq dependencies to 2.2.21 Final, but it didn't help. 

If someone more competent could look at it...

Or we can just disable Push for Tomcat and TomEE tests and make another Jenkins job just to test Push in Tomcat. Not very practical. but this would really help the long running jobs, which are now failing due this issue.

Or do we have better solution?
                
> Close HornetQ Threads properly [tomcat]
> ---------------------------------------
>
>                 Key: RFPL-2646
>                 URL: https://issues.jboss.org/browse/RFPL-2646
>             Project: RichFaces Planning
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.3.0.M1
>         Environment: RichFaces 4.3.0-SNAPSHOT
> Metamer 4.3.0-SNAPSHOT
> Apache MyFaces (2.1.8, 2.1.10) or Mojarra (2.1.16)
> Apache Tomcat 7.0.29, 7.0.32
> OpenJDK Runtime Environment 1.6.0_24-b24 @ Linux,  Java(TM) SE Runtime Environment 1.7.0_09-b05 @ Linux
> Firefox 14, 17 @ Linux x86_64
>            Reporter: Jiří Štefek
>              Labels: hortnetq, tomcat
>
> The HornetQ Threads are not closed properly. This causes memory leaks, which can lead to test suite stuck.
> See [1] after each test class.
> {code}
> Aug 21, 2012 9:59:03 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
> SEVERE: The web application [/metamer] appears to have started a thread named [Thread-0 (HornetQ-client-factory-threads-1849147-2133832)] but has failed to stop it. This is very likely to create a memory leak.
> {code}
> In Myfaces(only) there are also problems with closing ThreadLocals
> {code}
> Aug 21, 2012 9:59:03 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
> SEVERE: The web application [/metamer] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal at f659f0]) and a value of type [org.apache.myfaces.context.servlet.ServletExternalContextImpl] (value [org.apache.myfaces.context.servlet.ServletExternalContextImpl at 18ad373]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
> {code}
> [1] http://hudson.qa.jboss.com/hudson/view/RF-4.0/job/richfaces-metamer-smoke-ftest-myfaces/56/console

--
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 richfaces-planning-issues mailing list