how to get total Heap Size in JVM



Runtime runtime = Runtime.getRuntime();
System.out.println("Total Heap Size of JVM"+runtime.totalMemory());

Comments

Popular posts from this blog

Spring MVC- Redirect from one controller to another

Integrating Struts2 with Spring Security using Custom Login Form