Skip to content

Instantly share code, notes, and snippets.

@turf00
turf00 / gc-enable.md
Last active October 19, 2017 11:08
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