Why is my JVM’s max heap size less than -Xmx?
TL;DR Because Max heap size = -Xmx - max possible Survivor Space size (with Parallel Garbage Collector, one of the two Survivor Spaces always needs to be empty, so objects can be copied into it during GC). The same question is also answered more concisely in this Stack Overflow post.
Sword and Signals