A complete garbage collector is an important event in the garbage collection process. During this full GC phase, garbage is collected from all areas in the JVM heap (Young, Old, Perm, Metaspace). Full GC tends to retrieve more objects from memory, as it works across all generations. The Full GC event has several stages. Certain phases of the Full GC event (such as' initial-mark ', note', cleanup, ..) suspend all application threads that run the JVM. During this period, customer transactions will not be processed. The JVM will use all CPU cycles to collect garbage. Thanks to this, the processor consumption will be quite high. Thus, overall, full GCs are not desirable. There is no need to ask about the desirability of sequential complete garbage collections. Successive full garbage collection will cause the following problems:
Consumption 1.CPU will increase 2. Since the JVM is paused, your applicationโs transaction response time will be degraded. Therefore, it will affect your SLAs and degrade customer service.
GCeasy tool heap graph - showing sequential full GC
What are consecutive full fees?
Jim t
source share