Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Is the z garbage collector a low latency garbage collector?


Asked by Corey Vo on Dec 04, 2021 FAQ



The Z Garbage Collector (ZGC) is a scalable low latency garbage collector. ZGC performs all expensive work concurrently, without stopping the execution of application threads for more than 10ms, which makes is suitable for applications which require low latency and/or use a very large heap (multi-terabytes).
And,
The Z Garbage Collector, also known as ZGC, is a low latency scalable garbage collector designed to meet the following objectives. Pause times do not increase with the size of the heap or live-set.
Also Know, ZGC is more flexible in configuring its size and scheme. Compared to G1, ZGC has better ways to deal with very large object allocations. ZGC is a single-generation GC. It also supports partial compaction. ZGC is also highly performant when it comes to reclaiming memory and reallocating it.
Furthermore,
In Java 11, the Z Garbage Collector was only available on Linux 64 bit platform. Starting Java 14, ZGC is now available as an experimental feature on Windows as well as MacOS. The main goals of ZGC are:
Thereof,
Shenandoah is another garbage collector with low pause times. These times are short and predictable, regardless of the size of the heap. Shenandoah was developed at Red Hat and has been around for several years. It's now part of the Java 12 release.