Running my app in a container (adoptopenjdk11.0.13:debian) with 1g memory limit and maxrampercentage of 50
NMT reports shows this:
Total: reserved=17180391287KB, committed=817523KB
Java Heap (reserved=17179869184KB, committed=557056KB)
(mmap: reserved=17179869184KB, committed=557056KB)
'cat /sys/fs/cgroup/memory/memory.limit_in_bytes' shows 104857600 as expected
How exactly does JVM calculate available memory if not by looking at cgroups limits?