jprofiler安装-压测分析

本文详细介绍如何在Linux环境下安装JProfiler 10,并通过Ansible批量部署,以及如何使用JProfiler GUI进行远程监控分析。具体步骤包括下载RPM格式的安装包,利用Ansible的copy和shell模块进行批量安装,配置JProfiler并选择JVM及监控模式,最后在Windows客户端上安装以实现远程监控。

官网
https://www.ej-technologies.com/download/jprofiler/version_100

1、下载安装Linux版,这里安装的是RPM格式
wget https://download-keycdn.ej-technologies.com/jprofiler/jprofiler_linux_10_0_4.rpm

2、批量安装
copy模块
  ansible all -m copy -a "src=jprofiler_linux_10_0_4.rpm backup=yes dest=/root"
shell模块
  ansible all -m shell -a "rpm -ivh /root/jprofiler_linux_10_0_4.rpm"


3、安装成功后,进到jprofiler的目录,运行jpenable
cd /opt/jprofiler10/bin/

[root@ip-192-168-1-182 bin]# jpenable
Select a JVM:
is-job-1.0.0-SNAPSHOT.jar [12757] [1]
gi-job-1.0.1-SNAPSHOT.jar [12526] [2]

No JVM selected.
[root@ip-192-168-201-182 bin]# jpenable
Select a JVM:
is-job-1.0.0-SNAPSHOT.jar [12757] [1]
gi-job-1.0.1-SNAPSHOT.jar [12526] [2]
2
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
[26152]
8885
You can now use the JProfiler GUI to connect on port 8885
 

4、win客户端安装即可监控分析

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值