Java Memory Free getFreeMemoryKb()

Here you can find the source of getFreeMemoryKb()

Description

get Free Memory Kb

License

Apache License

Declaration

public static long getFreeMemoryKb() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static long getFreeMemoryKb() {
        return kb(Runtime.getRuntime().freeMemory());
    }//from www .j  a va2  s .  com

    public static long kb(long memBytes) {
        return memBytes / 1024;
    }
}

Related

  1. getFreeMemory()
  2. getFreeMemory()
  3. getFreeMemory(boolean preRunGarbageCollector)
  4. getFreeMemoryForAppInKB()
  5. getFreeMemoryInMb()
  6. getFreeMemoryMB()
  7. getJavaFreeMemory()
  8. getJvmFreeMemory()
  9. getMemoryFree()