Java Memory Free memoryFree()

Here you can find the source of memoryFree()

Description

memory Free

License

Open Source License

Declaration

public static int memoryFree() 

Method Source Code

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

public class Main {
    public static int memoryFree() {
        Runtime runtime = Runtime.getRuntime();
        return Math.round(runtime.freeMemory() / 1024f);
    }/* www.j  ava  2  s  . c om*/
}

Related

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