Hello everyone,
I have a couple of questions about the best practice configuration of G1GC on Ignition.
First of all, is best practice to set the init and max value to be identical on Ignition?
According to this link:
The VM allocating or giving back memory from the operating system memory may cause unnecessary delays. Avoid the delays by setting minimum and maximum heap sizes to the same value using the options
-Xms
and-Xmx
, and pre-touching all memory using-XX:+AlwaysPreTouch
to move this work to the VM startup phase.
I checked some other previous replies on the forum, and on this thread the recommendation is to go for this +30% on top of the peak extra memory allocation.
I wanted to understand which approach to attempt on a server returning Thread Viewer causes Clock Drift warnings.
The current config is:
wrapper.java.initmemory=8192
wrapper.java.maxmemory=32768
On a 64GB of ram server.
In addition, I wanted to confirm that the parameters passed to 'wrapper.java.initmemory' and 'wrapper.java.maxmemory' are overriding the following when lauching the JVM:
-XX:InitialHeapSize — Minimum Java heap size
-XX:MaxHeapSize — Maximum Java heap size
Thank you very much for any support on this.
All the best,