14 Feb
2024
14 Feb
'24
8:45 a.m.
Hello, saw this write up https://malloc.se/blog/zgc-softmaxheapsize. I have a question regarding AlwaysPreTouch. I could have missed it in the documentation and write up. But I am wondering: Doing -XX:SoftMaxHeapSize=2G -Xmx5G -XX:+AlwaysPreTouch will this first commit 5G of native memory on start and then ZGC will ZUncommit 3G? Alternative is to only pretouch up to 2G? With -XX:SoftMaxHeapSize=2G -Xmx5G -XX:+AlwaysPreTouch -XX:-ZUncommit does this mean the heap will take 5G of native memory from the start and stay that way? Thanks Alen