[jboss-dev-forums] [Design of JBoss Profiler] - Re: Class Leakage Tool
clebert.suconic@jboss.com
do-not-reply at jboss.com
Fri Aug 25 17:15:31 EDT 2006
anonymous wrote : which classloader was used to load the class?
I don't know if this is what you meant.. but I never cared about the classLoader holding the class.
Every time I had a class leakage was one of these three scenarios:
- static field holding reference to class/classLoader/reflection
- Class instance/ClassLoader instance being held in a Map
- Class instance being held in a WeakHashMap value. (Values are not weak. Any circular reference between the key and a value will keep a leak)
- Instance of an object referenced.
- Stack Reference to object/class/classLoaders
I never had any case where a classLoader instance is holding a reference to its child classLoaders.
I never cared about this, because if all references are inside the same classLoader, the reference would be gone before getting to the duplicates.
ah... and about EJB3 I guess Bill Burke fixed some of those references, but there might be still some leakage he needs to work on.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967578#3967578
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967578
More information about the jboss-dev-forums
mailing list