r/java • u/brunocborges • Jul 01 '26
The Cloud Capacity Your JVM Leaves Idle: A Rigorous Test of Microsoft's jaz
https://www.tmdevlab.com/jaz-cloud-jvm-defaults.html
13
Upvotes
r/java • u/brunocborges • Jul 01 '26
4
u/vips7L Jul 01 '26
Aren't they making it so G1 is the default in all scenarios? It seems like a lot of this is dependent on serial being picked in low memory environments.
1
u/ZimmiDeluxe Jul 06 '26
Why not talk to / coordinate with OpenJDK if the default ergonomics don't match the primary deployment target of today instead of developing a wrapper? As /u/vips7L mentioned, the same thing is already in the works (G1 by default with automatic heap sizing). Not to mention that jaz phones home: https://learn.microsoft.com/en-us/java/jaz/overview#telemetry
2
u/Life_Sink9598 Jul 03 '26
Enabling Native Memory Tracking out of the box is probably worth it on big nodes, as it's so cheap. I don't think it's worth it on a 1GiB node with 2vCPU where the heap is 71% of the total RAM. NMT will gobble up a bit of memory, and memory is already fairly tight for the JVM to do its job. C2 compilations can take a fair bit of RAM, but I guess you're deploying with Leyden anyway.
1
u/elmuerte Jul 03 '26
The container images created by buildpacks contains a memory calculator which sets appropriate memory limits for Java depending on what the container gets. https://paketo.io/docs/reference/java-reference/#memory-calculator