Java Memory Free getFreeMemoryInMb()

Here you can find the source of getFreeMemoryInMb()

Description

get Free Memory In Mb

License

Apache License

Declaration

public static double getFreeMemoryInMb() 

Method Source Code

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

public class Main {
    final static double MB_Numeral = 1024d * 1024d;

    public static double getFreeMemoryInMb() {
        return Runtime.getRuntime().freeMemory() / MB_Numeral;
    }//from w  ww.  j  a  va 2s. co  m
}

Related

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