Wednesday, November 6, 2013

HotSpot JVM garbage collection options cheat sheet (v3)

Two years ago I have published cheat sheet for garbage collection options in HotSpot JVM.

Recently I decided give that work some refreshing and today I'm publishing first HostSpot JVM options ref card covering generic GC options and CMS tuning. (G1 have got a plenty of tuning options during last two years so it will have dedicated ref card).

Content-wise GC log rotation options have been added and few esoteric CMS diagnostic options have been removed.

Two page PDF version

Single page PDF version




7 comments:

  1. ссылки на PDF не доступны

    ReplyDelete
    Replies
    1. PDFs are hosted on dropbox.com
      I have just checked them - links work
      May be a temporary glitch

      Delete
  2. Replies
    1. Indeed, knowledge of GC is very important

      Delete
  3. Very useful! One improvement might be to include the default values where applicable. They are usually a pain to find.

    ReplyDelete
  4. Command below will happily show you all XX settings. Combine it with your XX options, and you will see how JVM will set rest of its magic number.
    java -XX:+PrintFlagsFinal -version

    ReplyDelete