Search code examples
javajitjvm-hotspot

Which Java HotSpot JIT compiler is running?


I would like to know if my no VM argument invocation of HotSpot Java is running with -client, -server, or tiered compilation options. When I supply no VM arguments, which one is chosen by default? Is there a way to output diagnostics about which JIT compiler is running?


Solution

  • Assuming this is Hotspot:

    -XshowSettings:vm
    

    For example, on my Windows box I get output of:

    VM settings:
        Max. Heap Size (Estimated): 1.77G
        Ergonomics Machine Class: client
        Using VM: Java HotSpot(TM) 64-Bit Server VM