You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Janko Heilgeist (JIRA)" <ji...@apache.org> on 2009/02/19 10:37:01 UTC

[jira] Commented: (GERONIMO-4543) EAR classloader not garbage collected

    [ https://issues.apache.org/jira/browse/GERONIMO-4543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674936#action_12674936 ] 

Janko Heilgeist commented on GERONIMO-4543:
-------------------------------------------

There is still another reference from CurrentTime to my EAR's classloader through the inheritableThreadLocals field:

{code}
Java Local Reference (from org.apache.geronimo.transaction.manager.TransactionTimer$CurrentTime@0x2aaab1e8cd68) exclude  :
--> org.apache.geronimo.transaction.manager.TransactionTimer$CurrentTime@0x2aaab1e8cd68 (164 bytes) (field inheritableThreadLocals:) exclude
--> java.lang.ThreadLocal$ThreadLocalMap@0x2aaab2485938 (32 bytes) (field table:) exclude
--> [Ljava.lang.ThreadLocal$ThreadLocalMap$Entry;@0x2aaab2454dc0 (144 bytes) (Element 1 of [Ljava.lang.ThreadLocal$ThreadLocalMap$Entry;@0x2aaab2454dc0:) exclude
--> java.lang.ThreadLocal$ThreadLocalMap$Entry@0x2aaab2fe39e8 (56 bytes) (field value:) exclude
--> org.apache.xbean.naming.context.WritableContext$NestedWritableContext@0x2aaab055f088 (89 bytes) (field bindingsRef:) exclude
--> java.util.concurrent.atomic.AtomicReference@0x2aaab2031940 (24 bytes) (field value:) exclude
--> java.util.HashMap@0x2aaab22a0040 (64 bytes) (field table:) exclude
--> [Ljava.util.HashMap$Entry;@0x2aaab2031c00 (144 bytes) (Element 3 of [Ljava.util.HashMap$Entry;@0x2aaab2031c00:) exclude
--> java.util.HashMap$Entry@0x2aaab20322d0 (44 bytes) (field value:) exclude
--> org.apache.xbean.naming.context.WritableContext$NestedWritableContext@0x2aaab055f1a8 (89 bytes) (field contextFederation:) exclude
--> org.apache.xbean.naming.context.ContextFederation@0x2aaab0a133e8 (32 bytes) (field federatedContextRef:) exclude
--> java.util.concurrent.atomic.AtomicReference@0x2aaab2031a30 (24 bytes) (field value:) exclude
--> java.util.Collections$UnmodifiableSet@0x2aaab2031a48 (24 bytes) (field c:) exclude
--> java.util.LinkedHashSet@0x2aaab2031a60 (24 bytes) (field map:) exclude
--> java.util.LinkedHashMap@0x2aaab1f2a660 (73 bytes) (field header:) exclude
--> java.util.LinkedHashMap$Entry@0x2aaab22a0140 (60 bytes) (field after:) exclude
--> java.util.LinkedHashMap$Entry@0x2aaab22a0180 (60 bytes) (field key:) exclude
--> org.apache.xbean.naming.context.ImmutableContext@0x2aaab1f2a918 (65 bytes) (field absoluteIndex:) exclude
--> java.util.Collections$UnmodifiableMap@0x2aaab2032600 (48 bytes) (field m:) exclude
--> java.util.HashMap@0x2aaab0a13568 (64 bytes) (field table:) exclude
--> [Ljava.util.HashMap$Entry;@0x2aaab2031d30 (144 bytes) (Element 15 of [Ljava.util.HashMap$Entry;@0x2aaab2031d30:) exclude
--> java.util.HashMap$Entry@0x2aaab2032690 (44 bytes) (field value:) exclude
--> org.apache.geronimo.naming.reference.HandleDelegateReference@0x2aaab1f2a6b0 (80 bytes) (field classLoader:) exclude
--> org.apache.geronimo.kernel.config.MultiParentClassLoader@0x2aaab2fbc000 (156 bytes) exclude 
{code}

I assume, that it is the inheritable component context from org.apache.geronimo.naming.java.RootContext. But I can't find a way to fix this...

> EAR classloader not garbage collected
> -------------------------------------
>
>                 Key: GERONIMO-4543
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4543
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: transaction manager
>    Affects Versions: 2.2
>            Reporter: Janko Heilgeist
>         Attachments: ear-with-tx.tar.gz, privileged_currenttime.patch
>
>
> The TransactionTimer$CurrentTime thread inherits the AccessControlContext of the first EAR/WAR/EJB-jar that carries out a transaction. Thus, the particular EAR/WAR/EJB-jar's classloader is prevented from being GCed.
> See http://www.nabble.com/PermGen-space-issues-td22079768s134.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.