Class JVM


  • public class JVM
    extends Object
    JVM information
    • Constructor Detail

      • JVM

        public JVM()
    • Method Detail

      • getName

        public String getName()
        Returns the JVM name
        Returns:
        the JVM name
      • getVersion

        public String getVersion()
        Returns the JVM version
        Returns:
        the JVM version
      • getRuntime

        public String getRuntime()
        Returns the JVM runtime name.
        Returns:
        the JVM runtime name.
      • getMemory

        public Memory getMemory()
        Returns the information on the memory
        Returns:
        the information on the memory
      • getJavaHome

        public String getJavaHome()
        Returns the value of the JAVA_HOME environment variable Do not include this information in telemetry, as it likely includes the user's name
        Returns:
        the value of the JAVA_HOME environment variable
      • isNativeImage

        public boolean isNativeImage()
        Returns true if the server is a native image and false otherwise
        Returns:
        true if the server is a native image and false otherwise