1. Overview

In this short article, we’re going to see the difference between various memory size metrics in the JVM.

First, we’ll talk about how adaptive sizing works, and then we’ll evaluate the difference between max, used, and committed sizes.

2. Max Size and Adaptive Sizing

Two values control the size of the JVM heapone initial value specified via the _-Xms _flag and another maximum value controlled by the _-Xmx _tuning flag.

If we don’t specify these flags, then the JVM will choose default values for them. These default values depend on the underlying OS, amount of available RAM, and, of course, the JVM implementation itself:

#java #jvm

Difference in Used, Committed, and Max Heap Memory
16.95 GEEK