Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to find out if an object belongs to young or tenured generation

843829Oct 10 2005 — edited Oct 11 2005
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 8 2005
Added on Oct 10 2005
2 comments
114 views