Skip to content

Instantly share code, notes, and snippets.

@ralph-tice
Created July 30, 2014 02:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ralph-tice/4900b7ee9559b4a144b8 to your computer and use it in GitHub Desktop.
Save ralph-tice/4900b7ee9559b4a144b8 to your computer and use it in GitHub Desktop.
jvm gc logging
-verbose:gc \
-XX:+PrintGCDetails \
-XX:+PrintGCDateStamps \
-XX:+PrintGCTimeStamps \
-XX:+PrintHeapAtGC \
-XX:+PrintTenuringDistribution \
-XX:+PrintGCApplicationStoppedTime \
-XX:+PrintGCApplicationConcurrentTime \
-XX:+UseGCLogFileRotation \
-XX:NumberOfGCLogFiles=5 \
-XX:GCLogFileSize=128K \
-Xloggc:logs/gc.log
For production usage you probably should tweak GCLogFileSize and NumberOfGCLogFiles.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment