jprofile 监控远程linux服务器上tomcat 性能配置

前提条件:

1.       测试环境

服务器:Linux X64;tomcat 7.0;jdk 1.7;jprofiler_linux_9_2.sh

客户端:Windows10;jprofiler_windows-x64_9_2.exe

 

2.       JProfiler软件下载地址:http://www.ej-technologies.com/download/jprofiler/files

3.       客户端 JProfiler 安装 

4.       服务器端 JProfiler 安装:

 jprofiler_linux_9_2.sh 上传到到服务器,假设路径为 /home/devweb/soft

# cd/home/devweb/soft
# chmod +x jprofiler_linux_9_2.sh
# ./ jprofiler_linux_9_2.sh -c

注意,这里的 -c 意思是用字符方式来安装,如果机器上没有X,则加上该参数


开始:


1,,首先window客户端和 linux服务端都要安装相同版本的 jprofile;

2, 在tomcat的  catalina.sh 添加以下启动jprofile配置项

JAVA_OPTS="-agentpath:/opt/jprofiler9/bin/linux-x64/libjprofilerti.so=port=9988"

(最后面9988是jprofile客户端要连接的监控通讯端口)

3,启动tomcat,会提示等待jprofile客户端连接;

4,打开window上安装的 jprofile 客户端,Session->Integration Wizard->New Remote Integratation 配置远程服务器的ip地址 和 tomcat里面配置好的端口


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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值