This is for Ubuntu! Download async-profiler wget https://github.com/async-profiler/async-profiler/releases/tag/v4.2.1#:~:text=async%2Dprofiler%2D4.2.1%2Dlinux%2Dx64.tar.gztar xvf async-profiler-4.2.1-linux-x64.tar.gz Let user-space programs access Linux performance counters and expose kernel symbol addresses (can also make permanent) sudo sysctl -w kernel.perf_event_paranoid=1sudo sysctl -w kernel.kptr_restrict=0 Start Java and attach java -jar <jar…