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.
-XX:MaxHeapFreeRatio
and-XX:MinHeapFreeRatio
guaranteed to work on Oracle's 64 bit linux JVM I am not too sure if above parameters-XX:MaxHeapFreeRatio
and-XX:MinHeapFreeRatio
are only for serial garbage collectors or not. I am finding contradictory citations for that. – Nessa