[jboss-jira] [JBoss JIRA] (JGRP-1410) globalThreadGroup not destroyed creates a classloader memory leak
Bela Ban (JIRA)
jira-events at lists.jboss.org
Wed Nov 14 06:31:18 EST 2012
[ https://issues.jboss.org/browse/JGRP-1410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bela Ban resolved JGRP-1410.
----------------------------
Resolution: Done
I removed the use of ThreadGroup, as suggested in my prev comment. I also fixed a bug that caused timer threads to have a null or <ADDR> cluster name when a shared transport was used.
Let me know if this fixes your classloading leak, and re-open if the leak still exists.
> globalThreadGroup not destroyed creates a classloader memory leak
> -----------------------------------------------------------------
>
> Key: JGRP-1410
> URL: https://issues.jboss.org/browse/JGRP-1410
> Project: JGroups
> Issue Type: Bug
> Affects Versions: 3.0.1
> Environment: linux w/ java 1.6
> Reporter: Jean-Philippe Gariepy
> Assignee: Bela Ban
> Fix For: 3.3
>
>
> When all channels are closed, the globalThreadGroup is not destroyed. For a normal (i.e. non-web) application, this is not a problem since the process will exit anyway. However, for a Java Enterprise web application, this causes a classloader memory leak since the ThreadGroup object has strong references to JGroups instances having strong references to their class object having strong reference to their class loader. Since the class loader is pointed by strong references, the it cannot be garbage collected and hence a leak is created each time the web application is stopped.
--
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