Java Memory Total getJvmTotalMemory()

Here you can find the source of getJvmTotalMemory()

Description

get Jvm Total Memory

License

Apache License

Declaration

public static long getJvmTotalMemory() 

Method Source Code

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

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

    public static long getJvmTotalMemory() {
        return Runtime.getRuntime().totalMemory() / K2M;
    }//from w w w . j  a  v a  2s .  co m
}

Related

  1. getJavaTotalMemory()
  2. getMemoryTotal()
  3. getTotalFreeMemory()
  4. getTotalMemory()
  5. getTotalMemory()