simo
simo

Reputation: 317

Is setting xmx == xms is still good practice in java 11?

Is setting xmx == xms is still good practice in java-11 with G1 gc?

I ask this in the context of web applications.

Upvotes: 14

Views: 15933

Answers (1)

Luan Kevin Ferreira
Luan Kevin Ferreira

Reputation: 1380

For G1 GC, it is recommended to explicitly set the maximum and minimum heap size to the same value to avoid dynamic shrinking and growing of the heap during the applications lifecycle.

https://backstage.forgerock.com/knowledge/kb/article/a75965340

Upvotes: 2

Related Questions