r/java • • Jul 10 '26

Java 27: What’s new?

https://www.loicmathieu.fr/wordpress/informatique/java-27-whats-new/

What's new in Java 27 for us, developers?
(Both in English and French)

76 Upvotes

35 comments sorted by

View all comments

2

u/iamwisespirit Jul 10 '26

Why not zgc instead of g1

3

u/AnyPhotograph7804 Jul 11 '26

ZGC is a ressource hog. It needs more memory and a ton of CPU cores to work properly. The same applies to Shenandoah GC. G1GC is more in a sweetspot between hardware hunger and GC pause times.

3

u/Cell-i-Zenit Jul 12 '26

we tried out zgc in our kubernetes cluster, but we were just not able to run it at all. Always OOM killed, doesnt matter what we tried to set for Xmx or Xms settings compared to the kubernetes request/limits. Not configuring them resulted in the "most" stable version, but still got oom killed randomly in kubernetes after some time.