This content has been marked as final. Show 2 replies
I had already googled earlier to find answers on how to do this.
But the gc log file that is written after a restart is always the file with a suffix 0 and it gets overwritten every time the process restarts.
i have the following JVM parameters in place
However the log file written is always ec2_gc.log.0
-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=10M -Xloggc:/opt/data/mz_app/log/ec2_gc.log