Parallel Garbage Collector (GC)

The Parallel Garbage Collector (GC) or Throughput Collector is the default garbage collector used by JVM. The parallel garbage collector works the same as the serial garbage collector. The only difference between serial and parallel garbage collectors is that serial garbage collector uses a single thread for the garbage collection process while parallel garbage collector uses multiple threads for … Read more

Serial Garbage Collector (GC)

The Serial Garbage Collector (GC) is the simplest and oldest garbage collector in Java. It derives its name from performing all its work on a single thread. Main Operation Single thread to perform Garbage Collection (GC) How does Serial GC work? Used For: Advantage: Disadvantage: Implementation: -XX: +UseSerialGC Tuning serial GC: Conclusion A straightforward and … Read more

Garbage Collection Quick Guide

Garbage Collection Quick Guide

Present you the Garbage Collection Quick Guide: Garbage Collection Basics: Garbage Collection Activities: Performance Metrics targeted by GC algorithms Type of Garbage Collector: Comparison GC Throughput Latency Memory Footprint Serial Low High Low Parallel High Medium Medium CMS Medium Medium Medium G1 High Low Medium Z High Very Low High Shenandoah High Very Low High … Read more

Throughput in Garbage Collection

Throughput in Garbage Collection

When it comes to the memory management of a software application, garbage collection is crucial. Actually, the memory of unused or unreferenced objects is recovered by a Java program called Garbage Collector. It means that, like other Java codes, the GC executes when a certain condition, such as memory fullness, is met. GC affects the … Read more

Type of Garbage Collector

Garbage Collector Type

Before discussing the type of garbage collector, it is important to understand some basic terms related to it. Type of Garbage Collector: 1. Serial GC: Serial GC is designed for single-threaded environments. It uses just a single thread for garbage collection. As a result, this GC implementation freezes all application threads when it runs. This leads … Read more