I have a Java process that is getting restarted quite often. I would like to examine the GC Logs both before and after the restart to understand what is happening. But the verbose GC Logs get over written on a restart.
Is there any JVM setting to rotate GC logs on restart of an application ?
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