性能分析工具-JProfiler

一.下载JProfiler,选择各自OS下的版本

http://www.ej-technologies.com/download/jprofiler/files

可视化版本连接远程主机(远程主机linux 见步骤2)










二.一般应用都部署在linux下,介绍linux下的安装(本例监控ant服务)


第一步中下载linux版本jprofiler_linux_8_1_1.sh,上传到linux

#chmod 777 jprofiler_linux_8_1_1.sh

#./jprofiler_linux_8_1_1.sh –c

按步骤安装。


三.设置/etc/profile环境变量


在/etc/profile文件里添加:export LD_LIBRARY_PATH=/opt/jprofiler6/bin/linux-x64

立即生效 #source /etc/profile


四.在需要监控服务的启动脚本中添加配置


在第一步连接远程服务时,jprofiler提示insert "-agentpath:/opt/jprofiler8/bin/linux-x64/libjprofilerti.so=port=8850";
将-agentpath:/opt/jprofiler8/bin/linux-x64/libjprofilerti.so=port=8850添加到需要监控服务的启动脚本。
ANT服务,在$ANT_HOME/bin下,在ant文件中添加: ANT_OPTS="$ANT_OPTS  -agentpath:/opt/jprofiler8/bin/linux-x64/libjprofilerti.so=port=8850"。
TOMCAT服务,bin目录下catalina.sh中添加JAVA_OPTS="-agentpath:/opt/jprofiler8/bin/linux-x64/libjprofilerti.so=port=8850"





评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值