I need some help regarding interpreting the values of jstat capacity and utilization values in relation to the RSS and VSZ output from the ps command.
Summing all the values for capacity should give the total jvm memory capacity, while summing all the values for utilisation would give the total jvm memory utilisation.
I understand that total capacity >= total utilisation. However, how do these two values compare to RSS and VSZ, and if there are signification differences, what are common reasons or causes for them?
Garbage-collected heap statistics
Column Description
S0C Current survivor space 0 capacity (KB).
S1C Current survivor space 1 capacity (KB).
S0U Survivor space 0 utilization (KB).
S1U Survivor space 1 utilization (KB).
EC Current eden space capacity (KB).
EU Eden space utilization (KB).
OC Current old space capacity (KB).
OU Old space utilization (KB).
PC Current permanent space capacity (KB).
PU Permanent space utilization (KB).
YGC Number of young generation GC Events.
YGCT Young generation garbage collection time.
FGC Number of full GC events.
FGCT Full garbage collection time.
GCT Total garbage collection time.```