Package gaiasky.util

Class MemInfo

java.lang.Object
gaiasky.util.MemInfo

public class MemInfo extends Object
Provides information on system memory data.
  • Constructor Details Link icon

    • MemInfo Link icon

      public MemInfo()
  • Method Details Link icon

    • getUsedMemory Link icon

      public static double getUsedMemory()
      The used memory in MiB, which is totalMemory - freeMemory. Given in MB.
    • getFreeMemory Link icon

      public static double getFreeMemory()
      The amount of free memory in the JMV. Given in MB.
    • getTotalMemory Link icon

      public static double getTotalMemory()
      The total amount of memory in the JVM. Given in MB.
    • getMaxMemory Link icon

      public static double getMaxMemory()
      The maximum amount of memory the JVM will attempt to use. Same as -Xmx. Given in MB.
    • getTotalRam Link icon

      public static double getTotalRam()
      The total amount of RAM memory in the system, in MB.