Discovering Tenured Threshold programmatically

Philipp Stiegler gateway at gateways-home.org
Thu Feb 2 11:55:15 PST 2012


Hello Guys,

I tried to write my own monitoring tool to create dynamically views 
based on command line parameters.
If someone needs the code for verification you find the source here:
http://www.gateways-home.org/wb/media/jperfmon/jperfmon.zip

My problem now is, that I also want to log the tenured threshold. I 
searched quite a while, but I didn´t find a way for getting this value 
from the jvm.
Basically I connect to the vm via com.sun.tools.attach.VirtualMachine 
and I read the values out of the MBean structure (e.g. MemoryMXBean) but 
I don´t find this threshold in there.
Maybe someone can help me out?

Many thanks in advance!

All the best!

Philipp Stiegler


More information about the hotspot-gc-use mailing list