Package gaiasky.util
Class MemInfo
- java.lang.Object
-
- gaiasky.util.MemInfo
-
public class MemInfo extends java.lang.ObjectRAM memory information
-
-
Constructor Summary
Constructors Constructor Description MemInfo()
-
Method Summary
All Methods Static Methods Concrete Methods 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.
-
-
-
Method Detail
-
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.
-
-