Java Memory Max maxMemory()

Here you can find the source of maxMemory()

Description

max Memory

License

Apache License

Return

the maximum amount of memory that the virtual machine will attempt to use, measured in bytes

Declaration

public static long maxMemory() 

Method Source Code

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

public class Main {
    /**/*from  ww w  . jav  a  2  s. co m*/
     * @return the maximum amount of memory that the virtual machine will
     *         attempt to use, measured in bytes
     */
    public static long maxMemory() {
        return Runtime.getRuntime().maxMemory();
    }
}

Related

  1. getMaxMemory()
  2. getMaxMemoryStr()
  3. getMemoryMax()
  4. getMemoryMax()
  5. jvmMaxMemory(String size, Boolean txtByte)
  6. maxMemory()
  7. maxMemory()
  8. maxMemory()
  9. maxMemory()