Answers for "java ram usage"

1

java get ram usage

MemoryUsage heapMemoryUsage = ManagementFactory.getMemoryMXBean().getHeapMemoryUsage();
long maxMB = heapMemoryUsage.getMax()/(1024*1024);
long usedMB = heapMemoryUsage.getUsed()/(1024*1024);
Posted by: Guest on February-18-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language