Skip to content

Instantly share code, notes, and snippets.

@turf00

turf00/gc-enable.md

Last active Oct 19, 2017
Embed
What would you like to do?
GC Detailed Logging to file

Enable GC detailed logging to a file, max size 5M, max number of files 10.

File will be labelled .0 to .x depending on the number of files.

-XX:+PrintGCDetails
-XX:+PrintGCDateStamps
-XX:+PrintGCTimeStamps
-XX:+PrintTenuringDistribution 
-XX:+PrintGCCause
-XX:+UseGCLogFileRotation
-XX:NumberOfGCLogFiles=10
-XX:GCLogFileSize=5M
-Xloggc:<file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment