1 # Java Heap Model 2 3 The value of the Java heap model is the sum of bytes of Java objects allocated 4 on the Java heap. It can be calculated using: 5 6 Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory() 7 8 A Java heap dump is used for an actionable breakdown of the Java heap. 9