Java Memory Total getTotalMemoryInMb()

Here you can find the source of getTotalMemoryInMb()

Description

get Total Memory In Mb

License

Apache License

Declaration

public static double getTotalMemoryInMb() 

Method Source Code

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

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

    public static double getTotalMemoryInMb() {
        return Runtime.getRuntime().totalMemory() / MB_Numeral;
    }/*from   w ww  .  j  a  v  a2s . c om*/
}

Related

  1. getTotalFreeMemory()
  2. getTotalMemory()
  3. getTotalMemory()
  4. getTotalMemory(boolean preRunGarbageCollector)
  5. getTotalMemoryInKB()
  6. jvmTotalMemory(String size, Boolean txtByte)
  7. memoryTotal()
  8. totalMemory()
  9. totalMemory()