Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsclass loader held only by finalzation queue ??
https://www.eclipse.org/forums/index.php/mv/msg/163485/517434/#msg_517434
Sometimes I get OOME crashes because of a full perm gen and when analyzing the class loaders with MAT, I find some of my (undeployed) web app classloaders still present in the heap. And when I look at the "paths to GC Roots" "excluding weak/soft references", I see only one path : the double linked queue of java.lang.ref.FinalReference that contains all the objects that override finalize() ...
The thing is that according to jconsole, there are no objects pending finalization, so it's no a problem of the finalizer thread being too slow to finalize objects...
Have you already encountered such a strange path to GC root ?
Sylvain]]>slaurent2010-02-27T22:43:51-00:00Re: class loader held only by finalzation queue ??
https://www.eclipse.org/forums/index.php/mv/msg/163485/519322/#msg_519322
from what VM is the heap dump? In heap dumps from recent Sun VMs (1.6_14 an above) one can find also the stacktraces of threads. You could check then what the finalizer was doing at this time...
You can view the stack trace of a thread from the context menu on the object(s). You can also see all stacktraces by selecting the query from the tool bar "Java Basics" -> "Thread Stacks"
And second - do you see more paths if don't exclude weak/soft paths?