JProfiler使用(一)

 

   JProfiler连接远程linux下tomcat

下载 jprofiler_windows_6_0_3.exe。客户端

下载 jprofiler_linux_6_0_3.rpm。服务端

下载地址:http://www.ej-technologies.com/download/jprofiler/files.html

本机安装 windows 版本。服务器选择linux版本安装。

 

linux安装目录 /opt/jprofiler6

安装完成之后,本机启动jprofiler客户端。开始配置远程服务。

 

1.选择 StartCenter->New Seeeion->New Remote Integration

2. 选择 on a remote computer.选择远程目标系统,如:Linux X86/AMD64

3.选择JVM版本 如 IBM->1.6.0

4. 选择启动方式,如:启动工程,稍候再使用GUI连接(选项2).

5. 填写远程目标地址。如:10.123.73.2。(不需要加应用的端口)

6. 填写远程目标jprofiler安装目录。如:/opt/jprofiler6

7. 填写远程目标config文件。如:/opt

8. 填写连接段端口。默认为8849

9.记录下需要写入需要写入tomcat startup。sh的启动参数

如:-Xshareclasses:none -agentpath:/opt/jprofiler6/bin/linux- x86/libjprofilerti.so=port=8849,nowait,id=113,config=/opt/config.xml 

10. 将本机 C:\Documents and Settings\Administrator\.jprofiler6\config.xml 文件copy到服务端 /opt目录

11.修改tomcat startup。sh启动文件,

加入:CATALINA_OPTS="-agentpath:/opt/jprofiler6/bin/linux- x86/libjprofilerti.so=port=8849,nowait,id=113,config=/opt/config.xml       $CATALINA_OPTS"

       export CATALINA_OPTS

12. 启动tomcat。

13. 启动jprofiler客户端,从startcenter找到配置的启动文件,连接。监测页面就显示出来了。

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值