Java Memory Free getJvmFreeMemory()

Here you can find the source of getJvmFreeMemory()

Description

get Jvm Free Memory

License

Apache License

Declaration

public static long getJvmFreeMemory() 

Method Source Code

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

public class Main {
    private static final long K2M = 1024l * 1024l;

    public static long getJvmFreeMemory() {
        return Runtime.getRuntime().freeMemory() / K2M;
    }//www.  j a  v a2  s  . c  o m
}

Related

  1. getFreeMemoryForAppInKB()
  2. getFreeMemoryInMb()
  3. getFreeMemoryKb()
  4. getFreeMemoryMB()
  5. getJavaFreeMemory()
  6. getMemoryFree()
  7. getMemoryFree()
  8. getSystemFreeMemory()
  9. getTilesBasedOnFreeMemory(int rows, int cols)