Java Memory Allocate memoryAllocated()

Here you can find the source of memoryAllocated()

Description

memory Allocated

License

Open Source License

Declaration

public static int memoryAllocated() 

Method Source Code

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

public class Main {
    public static int memoryAllocated() {
        Runtime runtime = Runtime.getRuntime();
        return Math.round(runtime.totalMemory() / 1024f);
    }//from ww w  . j a  v  a 2  s  .c o m
}

Related

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