I am using GC options XX:+UseParNewGC-XX:+UseConcMarkSweepGC
for my application.
As most of you are already experiencing JVM is good at increasing heap up to max heap size, however it does not release memory back to OS. I came across -XX:MaxHeapFreeRatio
and -XX:MinHeapFreeRatio
but these are ignored for Parallel Garbage Collectors.
Are there special options to force JVM release memory back to OS for -XX:MaxHeapFreeRatio and -XX:MinHeapFreeRatio
combination.