Tuesday, November 12, 2024

JVM - GC

 


Application throughput : Time taken to run the application
Major GC run : The number of times the GC run old gen (tenured) space
Minor GC run : The number of times the GC run young gen space
Heap : System allocated memory for JVM to run all applications
Old gen : The space that contains objects which survived multiple GC runs
Young GC: The space that contains objects which are new/short lived (not survived enuf GC runs)
Metaspace: The space that contains the application metadata (classes + methods). Is not part of Heap
Code cache: Cache that contains code which helps JIT compiler

It starts in the young generation (which itself is divided into multiple spaces - Eden and Survivor) and would eventually end up in the tenured generation if it survived long enough.

No comments:

Post a Comment