Class MemoryUtil


  • public final class MemoryUtil
    extends Object
    Memory-related utility methods.
    Since:
    1.5.0
    Author:
    Pascal Essiembre
    • Method Detail

      • 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