List of utility methods to do Memory Allocate
long | allocatedMemory() allocated Memory return runtime.totalMemory() - runtime.freeMemory();
|
long | allocatedMemory() allocated Memory return Runtime.getRuntime().totalMemory();
|
int | getAllocatedMemory() Returns the allocated amount of memory (in MB) this JVM is using. return Math.round((float) (Runtime.getRuntime().totalMemory() / 1048576L)); |
long | getAllocatedMemory() get Allocated Memory return Runtime.getRuntime().totalMemory();
|
double | getAllocatedMemoryMB() get Allocated Memory MB return ((double) getAllocatedMemory()) / 1024. / 1024.; |
long | getMemoryAllocated() Get memory allocated by jvm. return Runtime.getRuntime().totalMemory();
|
int | memoryAllocated() memory Allocated Runtime runtime = Runtime.getRuntime();
return Math.round(runtime.totalMemory() / 1024f);
|