Hi! How to tune G1GC to shrink when there is unnused memory?
I am using eclipse and after doing some work with it, the it can show used memory under 1G and allocated 2G. If I invoke gc manually, it frees up memory nicely. I would like this to occur automatically. I have tried following settings in eclipse.ini: -Xms500M -Xmx3000M -XX:+UseG1GC -XX:+UseAdaptiveSizePolicy -XX:+UseCompressedOops -XX:MaxHeapFreeRatio=35 -XX:MinHeapFreeRatio=25 -XX:+UseFastAccessorMethods -XX:-OmitStackTraceInFastThrow -XX:InitiatingHeapOccupancyPercent=20 -Xnoclassgc Any ideas how to achieve desired results (equivalent to automatically invoking gc whenever there is excess memory allocated)? Thanks. ** Martin
_______________________________________________ hotspot-gc-use mailing list hotspot-gc-use@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use