Monitoring finalization activity

Andreas Loew Andreas.Loew at oracle.com
Sun Jan 13 14:17:56 PST 2013


Hi Taras,

you should be able to use BTrace (i.e. dynamic bytecode instrumentation) 
and register a probe on calling into the finalize() methods of the 
classes you want to monitor (the probe can then do the counting):

http://kenai.com/projects/btrace/pages/Home
http://kenai.com/projects/btrace/pages/UserGuide

Hope this helps & best regards,
Andreas


Am 13.01.2013 21:07, schrieb Taras Tielkes:
> Hi,
>
> Are there some (semi-) public counters available to track how much 
> work is being performed with regards to finalization? I'm mainly 
> interested in finalized instance counts by class, rather than the 
> current size of the finalizer queue.
>
> Thanks,
> -tt

-- 
Andreas Loew | Senior Java Architect
ACS Principal Service Delivery Engineer
ORACLE Germany



More information about the hotspot-gc-use mailing list