JAVA Heap Analysis
This is just a note for my personal use. To verify the Java heap usage, we can use jstat
command.
jstat -gc <PID>
S0C - Eden space capacity
S1C - Survivor space capacity
EC - Eden space capacity
OC - Old space capacity
S0U - Eden space utilization
S1U - Survivor space utilization
EU - Eden space utilization
OU - Old space utilization
Heap Utilizaiton = S0U + S1U + EU + OU
Heap Capacity = S0C + S1C + EC + OC