|Group by java.lang.ref.Finalizer.referent class name [message #2565]
||Wed, 13 August 2008 07:48
| Mark Mandel
Registered: July 2009
I'm trying to work out a memory leak on this application, and I'm seeing a
huge number of java.lang.ref.Finalizer objects on the heap.
Now that leads me to assume there are lots of little objects getting sent
to the GC, or something similar.
Each Finalizer has a referent property, which points to a java.lang.Object.
What I want to be able to do is get a report of a count of the number of
each type of class the referent has, within the Finalizer.
So if I was writing regular SQL, it would be something like:
SELECT COUNT(classof(f.referent)), classof(f.referent) class from
java.lang.ref.Finalizer f GROUP BY class
If that makes sense?
I can get a list of all the classes (~17k) that exist on the heap, via the
referent, like so:
Select classof(f.referent) from java.lang.ref.Finalizer f
But that won't give me the actual counts for groups of classes.
Any help would be appreciated greatly.
Powered by FUDForum
. Page generated in 0.02270 seconds