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)

Serial Garbage Collector or Serial GC is the most basic garbage collection (GC) algorithm used in Java. It works in a single-threaded way, meaning it uses one thread to perform all garbage collection tasks. During a GC event, your application pauses completely—this is called a stop-the-world pause. Although Serial GC causes these pauses, it’s still … 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

Types of Garbage Collectors

Garbage Collector Type

Before diving into the different types of garbage collectors, it’s important to understand some basic terms: 1. Serial Garbage Collector (Serial GC) Overview: Behavior: Performance Characteristics: JVM Argument: -XX:+UseSerialGC Recommended Use Cases: Limitations: 2. Parallel Garbage Collector (Parallel GC) Overview: Behavior: Performance Characteristics: JVM Argument:  -XX:+UseParallelGC Tuning Options: Recommended Use Cases: Limitations: 3. Concurrent Mark … Read more