Java Memory Free memoryFree()

Here you can find the source of memoryFree()

Description

memory Free

License

Open Source License

Declaration

public static long memoryFree() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static Runtime runtime;

    public static long memoryFree() {
        long mem = 0;

        for (int i = 0; i < 10; i++)
            mem += runtime.freeMemory();
        mem /= 10;/* w ww. j ava 2  s.  c  o  m*/
        return mem;
    }
}

Related

  1. getSystemFreeMemory()
  2. getTilesBasedOnFreeMemory(int rows, int cols)
  3. hasFreeMemory(float margin)
  4. isFreeMemoryAvailable()
  5. jvmFreeMemory(String size, Boolean txtByte)
  6. memoryFree()
  7. sampleFreeMemory()