JProfiler使用

一、安装

在官网下载windows和linux 2个安装包

https://www.ej-technologies.com/products/jprofiler/overview.html

在windows安装JProfiler,在linux解压到某个路径

 

二、监控jvm进程

在linux程序的bin中执行./jpenable,最后输出You can now use the JProfiler...代表运行成功

然后在windows下New Session

 如果因为阿里云服务器10070端口未开通,可以用XShell建立隧道

 然后JProfile配置127.0.0.1 10070就可以联通

 在压测场景下建议选Async sampling,不然对性能有影响

这个界面在开启压测后可以观察程序中占用cpu的方法

posted @ 2020-03-09 23:32  syxsdhy  阅读(200)  评论(0编辑  收藏  举报