Package gaiasky.util
Class MemInfo
java.lang.Object
gaiasky.util.MemInfo
public class MemInfo
extends java.lang.Object
RAM memory information
-
Constructor Summary
Constructors Constructor Description MemInfo() -
Method Summary
Modifier and Type Method Description static doublegetFreeMemory()The amount of free memory in the JMV.static doublegetMaxMemory()The maximum amount of memory the JVM will attempt to use.static doublegetTotalMemory()The total amount of memory in the JVM.static doublegetTotalRam()The total amount of RAM memory in the system, in MB.static doublegetUsedMemory()The used memory in MiB, which is totalMemory - freeMemory.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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.
-