Useful JVM Garbage Collector Settings

Concurrent Mark-Sweep Collector

This tends to give good all-round performance

JVM

-XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+UseParNewGC

NetBeans or Eclipse

-J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+UseParNewGC

Garbage-First Collector

This gives the best all-round performance, for larger multi-core boxen. The downside is that it’s new…

JVM

-XX:+UnlockExperimentalVMOptions -XX:+UseG1GC

NetBeans or Eclipse

-J-XX:+UnlockExperimentalVMOptions -J-XX:+UseG1GC

This entry was posted in java and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>