G1's Limits: When Terabyte Heaps Demand More Than Milliseconds

While G1 is a solid general-purpose GC, its generational approach and occasional stop-the-world phases can lead to pauses ranging from tens to hundreds of milliseconds on terabyte-sized ML heaps, making it less suitable for ultra-low latency requirements compared to ZGC and Shenandoah.

Sources

Open the full topic