Class Management


  • public class Management
    extends Object
    • Constructor Detail

      • Management

        public Management()
    • Method Detail

      • getPID

        public static long getPID()
        Returns:
        Process CPU time in nanoseconds
      • getJVMCpuTime

        public static long getJVMCpuTime()
        Returns:
        JVM CPU time in nanoseconds
      • getFreePhysicalMemorySize

        public static long getFreePhysicalMemorySize()
        Returns:
        the amount of free physical memory in bytes
      • getFreeSwapSpaceSize

        public static long getFreeSwapSpaceSize()
        Returns:
        the amount of free swap space in bytes
      • getTotalPhysicalMemorySize

        public static long getTotalPhysicalMemorySize()
        Returns:
        the total amount of physical memory in bytes
      • getTotalSwapSpaceSize

        public static long getTotalSwapSpaceSize()
        Returns:
        the total amount of swap space in bytes.
      • getCommittedVirtualMemorySize

        public static long getCommittedVirtualMemorySize()
        Returns:
        the amount of virtual memory that is guaranteed to be available to the running process in bytes
      • getCpuTime

        public static long getCpuTime​(long id)
        Returns:
        CPU time in nanoseconds.