Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Memory Analyzer (MAT) » class loader held only by finalzation queue ??
class loader held only by finalzation queue ?? [message #517434] Sat, 27 February 2010 22:43 Go to next message
slaurent is currently offline slaurentFriend
Messages: 5
Registered: February 2010
Junior Member

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 ?

Re: class loader held only by finalzation queue ?? [message #519322 is a reply to message #517434] Mon, 08 March 2010 14:11 Go to previous message
Krum Tsvetkov is currently offline Krum TsvetkovFriend
Messages: 163
Registered: July 2009
Senior Member
Hello Sylvain,

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?

Previous Topic:How to pass d64 Parameter to the MAT-JVM
Next Topic:Extending MAT by providing a new heap dump reader
Goto Forum:

Current Time: Sun Sep 19 02:10:18 GMT 2021

Powered by FUDForum. Page generated in 0.01725 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top