Re:Java 26 is here, and with it a solid foundation for the f...
by gf000 on Wednesday March 18, 2026 @08:05PM
(#47432980)
Do you need extra-low latency, even at very high percentile and are willing to give away a bit of throughput for it? ZGC
At almost every other case: G1 (the default, just don't add any flags).
Do you want to trade off using less memory at the price of some throughput? Decrease heap size, otherwise don't add anything.
That's it, in most cases just use the default.
How do I verify that they are actually better? Is the overall performance of my program better? Because that's what I care about. I of course do include memory usage in "performance".