Minimal "Stop-the-World" GC Pauses

Erlang/Elixir's per-process garbage collection ensures that when a GC is triggered, it only affects the individual process, avoiding system-wide "stop-the-world" pauses common in global GCs and maintaining continuous operation.

The top 3

  1. BEAM's Per-Process GC: The True Zero-Pause Approach: Unlike global garbage collectors, the Erlang/Elixir BEAM VM performs GC for each isolated process independently, ensuring other processes continue running without any 'stop-the-world' pauses across the entire VM.
  2. Java's ZGC & Shenandoah: Sub-10ms Pause Champions: For latency-sensitive Java applications, modern concurrent garbage collectors like ZGC and Shenandoah are designed for ultra-low 'stop-the-world' pauses, achieving times in the microseconds-to-milliseconds range, even with terabyte-sized heaps.
  3. Traditional GCs: Seconds-Long Pause Nightmares: Older or less optimized garbage collectors, such as Java's Parallel GC or even G1 GC under stress, could lead to 'Stop-the-World' pauses ranging from hundreds of milliseconds to several seconds, or even up to a minute for large heaps, significantly impacting application responsiveness and user experience.

Sources

Open the full topic