下载Arthas
# 官网
# https://arthas.aliyun.com/doc/download.html
wget https://github.com/alibaba/arthas/releases/download/arthas-all-3.6.4/arthas-bin.zip
on-cpu采集
profiler start
# 间隔一定时间后执行以下命令
profiler stop --file /home/jon/xxx.html
off-cpu采集
profiler start -e lock
# 间隔一定时间后执行以下命令
profiler stop --file /home/jon/xxx.html