2

Is there a JVM option (-XX or otherwise) to log objects that are queued to be finalized? I'm debugging an application that has excessive finalizers which results in a huge amount of java.lang.ref.Finalizer instances (as seen in YourKit Java Profiler). It's difficult from looking at YourKit profiler which root object's finalize method is causing all the Finalizer instances.

Steve Kuo
  • 61,876
  • 75
  • 195
  • 257

1 Answers1

0

Do -verbose:gc, -XX:+PrintGCDetails and -XX:+PrintGCTimeStamps give you enough info?

daveb
  • 74,111
  • 6
  • 45
  • 51