Class JvmInfo

java.lang.Object
org.elasticsearch.monitor.jvm.JvmInfo
All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, ReportingService.Info

public class JvmInfo
extends java.lang.Object
implements ReportingService.Info
  • Constructor Details

    • JvmInfo

      public JvmInfo​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • jvmInfo

      public static JvmInfo jvmInfo()
    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      java.io.IOException
    • pid

      public long pid()
      The process id.
    • getPid

      public long getPid()
      The process id.
    • version

      public java.lang.String version()
    • getVersion

      public java.lang.String getVersion()
    • versionUpdatePack

      public int versionUpdatePack()
    • getVmName

      public java.lang.String getVmName()
    • getVmVersion

      public java.lang.String getVmVersion()
    • getVmVendor

      public java.lang.String getVmVendor()
    • getBundledJdk

      public boolean getBundledJdk()
    • getUsingBundledJdk

      public java.lang.Boolean getUsingBundledJdk()
    • getStartTime

      public long getStartTime()
    • getMem

      public JvmInfo.Mem getMem()
    • getInputArguments

      public java.lang.String[] getInputArguments()
    • getBootClassPath

      public java.lang.String getBootClassPath()
    • getClassPath

      public java.lang.String getClassPath()
    • getSystemProperties

      public java.util.Map<java.lang.String,​java.lang.String> getSystemProperties()
    • getConfiguredInitialHeapSize

      public long getConfiguredInitialHeapSize()
    • getConfiguredMaxHeapSize

      public long getConfiguredMaxHeapSize()
    • onError

      public java.lang.String onError()
    • onOutOfMemoryError

      public java.lang.String onOutOfMemoryError()
    • useCompressedOops

      public java.lang.String useCompressedOops()
      The value of the JVM flag UseCompressedOops, if available otherwise "unknown". The value "unknown" indicates that an attempt was made to obtain the value of the flag on this JVM and the attempt failed.
      Returns:
      the value of the JVM flag UseCompressedOops or "unknown"
    • useG1GC

      public java.lang.String useG1GC()
    • useSerialGC

      public java.lang.String useSerialGC()
    • getG1RegionSize

      public long getG1RegionSize()
    • getGcCollectors

      public java.lang.String[] getGcCollectors()
    • getMemoryPools

      public java.lang.String[] getMemoryPools()
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
      java.io.IOException