How to find classes FinalReference references to?

Vitaly Davidovich vitalyd at gmail.com
Fri May 8 22:43:05 UTC 2015


Hi Tao,

Have you tried taking a heap dump (jmap) and then using a heap
viewer/analyzer, such as MAT <http://eclipse.org/mat/>? You should be able
to find instances of FinalReference, and what they point at.

HTH

On Fri, May 8, 2015 at 6:33 PM, Tao Mao <yiyeguhu at gmail.com> wrote:

> Hi,
>
> I find one of our applications using G1GC takes a comparably long time to
> do [Ref Proc]. Tried ParallelRefProcEnabled, with no noticeable
> improvement. Turning on PrintReferenceGC further finds all of processed
> references are FinalReference. We want to know which code is using a
> finalizer at this point. Our own code base does not use finalize() at all.
> So, I suspect finalize() is being used by some external Java libraries but
> they are not easy to find.
>
> Is there any way to find and profile classes/objects FinalReference
> references to?
>
> (I guess I'm still able to hack into OpenJDK code but I'd rather not do
> that :)
>
> Thanks.
> Tao
>
> _______________________________________________
> hotspot-gc-use mailing list
> hotspot-gc-use at openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20150508/430584ac/attachment-0001.html>


More information about the hotspot-gc-use mailing list