Jprofiler配置


客户端

1、解压jprofiler_windows_6_2.zip
2、输入sn
3、选择 an application on remote computer
4、根据远程计算机的配置next到最后一步会有一个界面如下:记住-agentpath那一行后面使用


————————————————————————
Integration type: [Generic application]
Selected JVM: Sun 1.6.0 (hotspot)
Startup mode: Wait for a connection from the JProfiler GUI


(1) Please insert


-agentpath:/home/jprofiler6/bin/linux-x64/libjprofilerti.so=port=8849


into the start command of your remote application right after the java command.


A remote session named Remote application on 1231 will be created that connects to a running instance of the remote application that is started with the modified start command.
——————————————————————————


服务器端
下载了jprofiler_linux_6_2_4.sh
1、因为linux下没有图形界面加了参数-c
sh jprofiler_linux_6_2_4.sh -c
安装成功后;
2、修改tomcat/bin下的catalin.sh 增加下面这行:
CATALINA_OPTS="$CATALINA_OPTS $JPDA_OPTS -agentpath:/home/jprofiler6/bin/linux-x64/libjprofilerti.so=port=8849"
3、修改环境变量:
export LD_LIBRARY_PATH=/home/jprofiler6/bin/linux-x86


Ok配置完成。
开始使用jprofiler了~
1、linux机器启动tomcat
2、在自己的机器上启动jprofiler。
3、ok~大功告成

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值