That’s quite confusing but Xmx=1g lets my JVM consuming more than 1g of RAM. How so?
Doing some tests here I see that when using Xmx=1g, the JVM is actually using 1.5g! well the explanation is simple:
Xmx only limits the allocated memory on the heap.
So how to limit it??
To specify the total usage you need to use -XX:MaxRAM.
Thanks, CHF for this tip!
You can use this table as a reference.