This content has been marked as final. Show 2 replies
Google: "java gc log settings"
It is -so- easy to find answers to "how to do this" questions: join the group of people who use google and rejoice.
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