Skip to content

Instantly share code, notes, and snippets.

@OMGZui
Created November 7, 2022 13:57
Show Gist options
  • Save OMGZui/3c199c6d9548ba84f8490f03dea00fd4 to your computer and use it in GitHub Desktop.
Save OMGZui/3c199c6d9548ba84f8490f03dea00fd4 to your computer and use it in GitHub Desktop.
-XX:+PrintGCDetails \ // gc*
-XX:+PrintGCApplicationStoppedTime \ // safepoint
-XX:+PrintGCApplicationConcurrentTime \ // safepoint
-XX:+PrintGCCause \ // default output
-XX:+PrintGCID \ // default output
-XX:+PrintTenuringDistribution \ // gc+age*=trace
-XX:+PrintGCDateStamps \ // :time,tags,level
-XX:+UseGCLogFileRotation \ // :filecount=5,filesize=10M
-XX:NumberOfGCLogFiles=5 \ // :filecount=5,filesize=10M
-XX:GCLogFileSize=10M \ // :filecount=5,filesize=10M
-Xloggc:/var/log/`date +%FT%H-%M-%S`-gc.log \ // -Xlog::file=/var/log/%t-gc.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment