What is the purpose of the `-XX:MaxHeapFreeRatio` JVM option?
The `-XX:MaxHeapFreeRatio` option controls how much heap memory is freed after garbage collection.
Thatâ€™s incorrect. The `-XX:MaxHeapFreeRatio` does not control how much memory is freed but the threshold for free memory before GC is triggered.
Do you know what JVM option directly affects the amount of memory to be freed during garbage collection?