在官网下载windows和linux 2个安装包
https://www.ej-technologies.com/products/jprofiler/overview.html
在windows安装JProfiler,在linux解压到某个路径
在linux程序的bin中执行./jpenable,最后输出You can now use the JProfiler...代表运行成功
然后在windows下New Session
如果因为阿里云服务器10070端口未开通,可以用XShell建立隧道
然后JProfile配置127.0.0.1 10070就可以联通
这个界面在开启压测后可以观察程序中占用cpu的方法
原文:https://www.cnblogs.com/ctxsdhy/p/12452549.html