jprofiler 8 安装与使用

下载什么就不多说了

 

window端

安装jdk,安装jprofiler下一步下一步就OK了,也可以安装eclipse插件进行本机分析,但我们要远程分析linux机器上的jvm.

 

linux端下载

下载linux端的jprofiler,解压就好了,配置环境

修改profile文件

命令:Vim /etc/profile

在最后加上:JPROFILER_HOME=/opt/jprofiler5

export LD_LIBRARY_PATH=$JPROFILER_HOME/bin/linux-x86

保存退出,激活命令:source /etc/profile

 

配置就好了,现在我们返回window上,打开jprofile,我们测试目标是应用程序,所以我们选Session->Integration Wizard->On a remote computer->

然后就后生成一个jvm启动参数,插入到你linux上机就可以连接了

-agentpath:/root/jprofiler8/bin/linux-x64/libjprofilerti.so=port=8949"

 

你可能感兴趣的:(java,操作系统)