I am using the GC XX:+UseParNewGC-XX:+UseConcMarkSweepGC for my application.
Since most of you are already testing the JVM, it is useful to grow the heap to the maximum heap size, however it does not free memory back to the OS. I came across -XX:MaxHeapFreeRatio and -XX:MinHeapFreeRatio , but they are ignored for Parallel Garbage Collectors.
Are there any special options for forcibly unloading JVM memory back to the OS for the combination -XX:MaxHeapFreeRatio and -XX:MinHeapFreeRatio .
source share