Package gaiasky.util
Class MemInfo
java.lang.Object
gaiasky.util.MemInfo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
The amount of free memory in the JMV.static double
The maximum amount of memory the JVM will attempt to use.static double
The total amount of memory in the JVM.static double
The total amount of RAM memory in the system, in MB.static double
The used memory in MiB, which is totalMemory - freeMemory.
-
Constructor Details
-
MemInfo
public MemInfo()
-
-
Method Details
-
getUsedMemory
public static double getUsedMemory()The used memory in MiB, which is totalMemory - freeMemory. Given in MB. -
getFreeMemory
public static double getFreeMemory()The amount of free memory in the JMV. Given in MB. -
getTotalMemory
public static double getTotalMemory()The total amount of memory in the JVM. Given in MB. -
getMaxMemory
public static double getMaxMemory()The maximum amount of memory the JVM will attempt to use. Same as -Xmx. Given in MB. -
getTotalRam
public static double getTotalRam()The total amount of RAM memory in the system, in MB.
-