<div dir="ltr">Hi, all. With the help of jmap or other tools, we can dump heap objects at a specific time. Then we can find out both the number and size of the individual object.<div><br></div><div>At this point, I would like to know the heap location (Eden, S0/S1, or Old) of each object. But I cannot find any related information in the heap dump. How to identify? I really need this information in my project.</div>
<div><br></div><div>I think there is a way to know the address of each object and address boundary of each space, since GC algorithms have methods to scan objects in a specific space.</div><div><br></div><div>I also noticed that there are some address information generated by +PrintGCDetails about each space. For example,</div>
<div><br></div><div><div>Heap</div><div> def new generation   total 153600K, used 152935K [0x14710000, 0x1edb0000, 0x1edb0000)</div><div>  eden space 136576K, 100% used [0x14710000, 0x1cc70000, 0x1cc70000)</div><div>  from space 17024K,  96% used [0x1dd10000, 0x1ed09f60, 0x1edb0000)</div>
<div>  to   space 17024K,   0% used [0x1cc70000, 0x1cc70000, 0x1dd10000)</div><div> tenured generation   total 341376K, used 341220K [0x1edb0000, 0x33b10000, 0x33b10000)</div><div>   the space 341376K,  99% used [0x1edb0000, 0x33ae9160, 0x33ae9200, 0x33b10000)</div>
<div> compacting perm gen  total 12288K, used 188K [0x33b10000, 0x34710000, 0x37b10000)</div><div>   the space 12288K,   1% used [0x33b10000, 0x33b3f2c0, 0x33b3f400, 0x34710000)</div><div>    ro space 10240K,  42% used [0x37b10000, 0x37f50348, 0x37f50400, 0x38510000)</div>
<div>    rw space 12288K,  54% used [0x38510000, 0x38b906f0, 0x38b90800, 0x39110000)</div></div><div><br></div><div>What's the exact meaning of these multiple address?</div></div>