dlg99 commented on issue #2878: URL: https://github.com/apache/bookkeeper/issues/2878#issuecomment-1018109001
@wuzhanpeng I suggest starting with profiling. JFR (java flight recorder) is packaged with the JDK. It is an easy to use profiler (cpu/memory/GC). In case you haven't used it: ```jcmd <PID_HERE> JFR.start duration=60s settings=profile filename=flight.jfr``` This will collect the profile into the file. If the systems is too busy the profile can get quite large (but it compresses well), you can try to decrease duration. In some cases longer durations help. this should work on java 11 pre-java11 requires `jcmd <PID_HERE> VM.unlock_commercial_features` before running jfr to find the pid: run `jcmd` the jfr file can be opened with jmc (UI app) https://github.com/openjdk/jmc#downloading-builds or https://www.oracle.com/java/technologies/javase/products-jmc8-downloads.html (used to be included in the jdk) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
