Default values for Xmx, Xms, MaxPermSize on non-server-class machines

前端 未结 1 1017
有刺的猬
有刺的猬 2020-12-08 01:48

What are the default values for the following options in Java 6 on a non-server-class machine?

  • -Xmx
  • -XX:MaxPermSize

Oracle\'s

相关标签:
1条回答
  • 2020-12-08 02:25

    Default values for JDK 1.6.0_29 on Windows 7/32-bit:

    -Xmx256m
    -XX:MaxPermSize=64m
    

    Also value of these option can be printed by following command:

    java -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version 2>&1
    

    Then look for MaxHeapSize and MaxPermSize keys and see default values.

    uintx InitialHeapSize                          := 199947456       {product}
    uintx MaxHeapSize                              := 268435456       {product}           
    uintx MaxPermSize                               = 67108864        {pd product}        
    

    Here is the Ultimate HotSpot VM Options Cheat Sheet with defaults and descriptions for last 5 versions of JDK (7, 8, 9, 10 & 11).

    0 讨论(0)
提交回复
热议问题