Java Memory Allocate allocatedMemory()

Here you can find the source of allocatedMemory()

Description

allocated Memory

License

Apache License

Return

the total amount of memory currently available for current and future objects, measured in bytes.

Declaration

public static long allocatedMemory() 

Method Source Code

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

public class Main {
    /**/*w w  w . ja  v a  2  s . c o  m*/
     * @return the total amount of memory currently available for current
     *         and future objects, measured in bytes.
     */
    public static long allocatedMemory() {
        return Runtime.getRuntime().totalMemory();
    }
}

Related

  1. allocatedMemory()
  2. getAllocatedMemory()
  3. getAllocatedMemory()
  4. getAllocatedMemoryMB()
  5. getMemoryAllocated()