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>