Java Memory Max memoryMax()

Here you can find the source of memoryMax()

Description

memory Max

License

Open Source License

Declaration

public static int memoryMax() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int memoryMax() {
        Runtime runtime = Runtime.getRuntime();
        return Math.round(runtime.maxMemory() / 1024f);
    }/*from  w w w.j  av  a2  s .  co m*/
}

Related

  1. maxMemory()
  2. maxMemoryb()
  3. maxMemoryInMbs()
  4. maxMemoryMB()
  5. memoryMax()