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.
Two values control the size of the JVM heap: one 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