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

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -