Class ProcessProbe


  • public class ProcessProbe
    extends java.lang.Object
    • Method Summary

      Modifier and Type Method Description
      static ProcessProbe getInstance()  
      long getMaxFileDescriptorCount()
      Returns the maximum number of file descriptors allowed on the system, or -1 if not supported.
      long getOpenFileDescriptorCount()
      Returns the number of opened file descriptors associated with the current process, or -1 if not supported.
      short getProcessCpuPercent()
      Returns the process CPU usage in percent
      long getProcessCpuTotalTime()
      Returns the CPU time (in milliseconds) used by the process on which the Java virtual machine is running, or -1 if not supported.
      long getTotalVirtualMemorySize()
      Returns the size (in bytes) of virtual memory that is guaranteed to be available to the running process
      ProcessInfo processInfo​(long refreshInterval)  
      ProcessStats processStats()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getMaxFileDescriptorCount

        public long getMaxFileDescriptorCount()
        Returns the maximum number of file descriptors allowed on the system, or -1 if not supported.
      • getOpenFileDescriptorCount

        public long getOpenFileDescriptorCount()
        Returns the number of opened file descriptors associated with the current process, or -1 if not supported.
      • getProcessCpuPercent

        public short getProcessCpuPercent()
        Returns the process CPU usage in percent
      • getProcessCpuTotalTime

        public long getProcessCpuTotalTime()
        Returns the CPU time (in milliseconds) used by the process on which the Java virtual machine is running, or -1 if not supported.
      • getTotalVirtualMemorySize

        public long getTotalVirtualMemorySize()
        Returns the size (in bytes) of virtual memory that is guaranteed to be available to the running process
      • processInfo

        public ProcessInfo processInfo​(long refreshInterval)