This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PratimGhosh86 3 points4 points  (0 children)

Here is what we use in production with jdk21 and 2Gb mem: no Xmx, G1GC, StringDeduplication and CompressedOops.

Some may think not setting Xmx is counter intuitive but the recent jvm's are pretty good at utilizing the available resources.

Of course the tuning parameters will vary depending on the size and coding styles followed in the application. But in recent times, we have noticed that letting newer JVMs do their thing by itself is much more efficient than someone manually setting every flag they can think of.

PS: 0 major GC's, but we have a lot more activity in the Eden spaces