Package com.norconex.commons.lang
Class MemoryUtil
java.lang.Object
com.norconex.commons.lang.MemoryUtil
Memory-related utility methods.
- Since:
- 1.5.0
-
Method Summary
-
Method Details
-
getFreeMemory
public static long getFreeMemory()Gets the JVM free memory. The free memory is calculated by taking the JVM current free memory, plus the difference between the maximum possible JVM memory and the total JVM memory taken so far.- Returns:
- JVM free memory in bytes
-