u/Senikaein r/programming • Recommends
On “Beginners guide to Java Garbage Collector”
> Recent versions of JDKs provide G1GC as the default garbage collector, which also has a low pause time.
No it does not, its pauses can go up to around 400ms which is at least two orders of magnitude off from "low": link to this video
> The G1 collector is designed for applications that:
>
> Compact free space without lengthy GC-induced pause times.
>
> Need more predictable GC pause durations.
>
> Do not want to sacrifice throughput.
What a bunch of nonsense. You either sacrifice latency or throughput, so which is it? For G1 the answer is latency.
I can tell from the way this is written and the nonsensical statements like the above that the author is out of his depth here. Terrible advic…