jvm-profiling-tools / honest-profiler

A sampling JVM profiler without the safepoint sample bias
https://github.com/RichardWarburton/honest-profiler/wiki
MIT License
1.25k stars 146 forks source link

Log rotation #253

Open RalphSu opened 5 years ago

RalphSu commented 5 years ago

From : https://github.com/jvm-profiling-tools/honest-profiler/issues/26

Add two configuration parameter rotateSize(per file) and and rotateNum(num of file remained).

RalphSu commented 5 years ago

Bad cpp coder (you can see the commits..)

RalphSu commented 5 years ago

@RichardWarburton @mbarbon see if this could meet the ask

RalphSu commented 5 years ago

-agentpath:/home/liasu/honest-profiler/build/liblagent.so=interval=7,logPath=/ebay/apache-tomcat-9.0.14/logs/log.hpl,rotateSizeMB=1,rotateNum=3 Sample JVM parameter

RalphSu commented 5 years ago

This feature would cause https://github.com/cykl/hprof2flamegraph has to use --skip-trace-on-missing-frame