Jprofiler的使用

Jprofiler是一款优秀的Java性能检测工具,下面是JProfiler连接远程JVM的方法。

准备

首先在远程机器上下载Jprofiler并解压文档:

wget http://download-keycdn.ej-technologies.com/jprofiler/jprofiler_linux_9_1_1.tar.gz
tar -zxvf jprofiler_linux_9_1_1.tar.gz

使用jpenable启动JProfiler

[username@hostname ~]$ cd jprofiler9
[username@hostname jprofiler9]$ bin/jpenable
Select a JVM:
/opt/company/apps/server/jetty/sta...ini.new_service [10823] [1]
org.eclipse.jetty.xml.XmlConfigura...ork/jetty-conf/jetty8.xml [10837] [2]
1
Please select the profiling mode:
GUI mode (attach with JProfiler GUI) [1, Enter]
Offline mode (use config file to set profiling settings) [2]
1
Please enter a profiling port
[31757]
8419
You can now use the JProfiler GUI to connect on port 8419

jprofiler客户端安装

Mac 环境, 直接下载: http://download-keycdn.ej-technologies.com/jprofiler/jprofiler_macos_9_1_1.dmg

运行: Start Center -> Quick Attach -> On Another Computer, 选择IP, Port.

注意: JProfiler 诊断期间, 会引起服务性能降低。另外, Profiling Setting 有两个设置: 建议使用 Sampling,Instrumentation 对性能影响过大, 不建议使用。

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值