Like the question, when I run the program with the JVM -XX + PrintFlagsFinal option, I can see the printed MaxHeapSize, as shown below:
bool MaxFDLimit = true {product} uintx MaxGCMinorPauseMillis = 4294967295 {product} uintx MaxGCPauseMillis = 4294967295 {product} uintx MaxHeapFreeRatio = 70 {product} **uintx MaxHeapSize := 1044381696 {product}** intx MaxInlineLevel = 9 {product} intx MaxInlineSize = 35 {product} intx MaxJavaStackTraceDepth = 1024 {product}
While I run the same program with the JVM -XX + PrintCommandLineFlags option, I can see MaxHeapSize as:
-XX:InitialHeapSize=65192896 **-XX:MaxHeapSize=1043086336** -XX:+PrintCommandLineFlags -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:-UseLargePagesIndividualAllocation -XX:+UseParallelGC
Can you tell me why these two are different? I thought they should be the same.
source share