clarification regarding SoftMaxHeapSize and AlwaysPreTouch
Alen Vrečko
alen.vrecko at gmail.com
Wed Feb 14 08:45:42 UTC 2024
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/zgc-dev/attachments/20240214/3fe57c8d/attachment.htm>
More information about the zgc-dev
mailing list