I have a doubt related to Max heap memory displaye...
# develocity
s
I have a doubt related to Max heap memory displayed in gradle build scan. You can see in screenshot that 12.4gb is displayed for max heap memory. Want to understand how this value is being calculated? My runner machine is reaching to 32gb which jvmargs is defined as 14g and kotlin help is defined as 4g. So wanted to understand how 12.4gb is being calculate in build scan. And I have noticed that for same task this value is always same. So I was wondering that how this value can be same for all runs.
n
Hi Shailesh, The max jvm heap size as shown in build scans will always be smaller than the
Xmx
argument you specify to
jvmargs
. The JVM runtime uses memory for other things than the heap (such as metaspace) and this may reduce the maximum memory available in the heap itself.