below is the gc logging option to write a specific file
-verbose:gc -Xloggc:/logs/gc.log
OK Good. but when the java application restarts, the contents of the old gc log in the file disappeared. I hope vm in the file add gc to the file "/logs/gc.log".
Is there an option for this? or do I need to write a shell script to back up the old gc file?
source share