# jcmd GC.heap_info on a live process, per collector (JDK 25, 512 MB heap, 150 MB live)

## -XX:+UseParallelGC
PSYoungGen      total 163328K, used 67168K [0x00000000f5580000, 0x0000000100000000, 0x0000000100000000)
 eden space 152064K, 37% used [0x00000000f5580000,0x00000000f8c783c8,0x00000000fea00000)
 from space 11264K, 96% used [0x00000000ff500000,0x00000000fffa0000,0x0000000100000000)
 to   space 11264K, 0% used [0x00000000fea00000,0x00000000fea00000,0x00000000ff500000)
ParOldGen       total 349696K, used 216440K [0x00000000e0000000, 0x00000000f5580000, 0x00000000f5580000)
 object space 349696K, 61% used [0x00000000e0000000,0x00000000ed35e2e0,0x00000000f5580000)

## -XX:+UseG1GC
garbage-first heap   total reserved 524288K, committed 524288K, used 214460K [0x00000000e0000000, 0x0000000100000000)
 region size 1024K, 24 young (24576K), 15 survivors (15360K)

## -XX:+UseZGC
ZHeap            used 320M, capacity 512M, max capacity 512M
 Cache           192M (23)
  size classes   2M (12), 4M (7), 8M (2), 32M (1), 64M (1)

## -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
Shenandoah Heap
 512M max, 512M soft max, 512M committed, 261M used
 2048 x 256 K regions
Status: not cancelled
Reserved region:
 - [0x00000000e0000000, 0x0000000100000000) 
Collection set:
 - map (vanilla): 0x0000000000004800
 - map (biased):  0x0000000000001000

