How can I know whether a Java object is in tenure or eden space from heap dump
问题 I have a Hotspot JVM heap dump and I tried to find out whether an object is live in tenure space, eden space, or survivor space, but I could not. Appreciate if someone can help me. 回答1: I don't think you can. From this forum post, sorry, bad news, the heap dump neither contains the info about the space the object is in Looking at the contents of the java heap dumps from this page seems to confirm that the heap dump does not contain generation info, HEAP DUMP BEGIN (39793 objects, 2628264