How to find out if an object belongs to young or tenured generation
843829Oct 10 2005 — edited Oct 11 2005Hi,
Working on an internal memory analysis tool (to embed in an application), and I wonder if anyone knows how to find out what part of the heap an object belongs to (young, tenured, permanent etc.). Since tools like VisualGC (both for JDK 1.4 and 1.5) seem to be able to discern between the objects in the heap, there must be a way to figure it out. Is there an API in JNI, JVMTI or JVMPI or anything else that provides this info?
Thanks,
Luc