java - how to append gc log -
below gc logging option write specific file
-verbose:gc -xloggc:/logs/gc.log ok. good. when java app restarted, old gc log contents in file disappeared. hope vm append gc log "/logs/gc.log" file.
does option exist? or have write shell script old gc file?
you explicitly requesting gc data goes file named 'gc.log'. can append date & pid filename prevent sort of collision. no mechanism within hotspot exists prevent data being overwritten.
Comments
Post a Comment