CentOS7 Jprofiler10监控tomcat进程性能

一、系统环境

服务端

CentOS-7.3.1611 + jdk1.8.0_144 + Tomcat-8.5.30 + jprofiler_linux_10_1_2.rpm

客户端

Win10 + jprofiler_windows-x64_10_1_2.exe

二、安装部署

服务端安装jprofiler10

rpm -ivh jprofiler_linux_10_1_2.rpm

安装完成后目录在/opt/jprofiler10/

配置环境变量

export LD_LIBRARY_PATH=:/opt/jprofiler10/bin/linux-x64

source /etc/profile 即刻生效变量

修改Tomcat catalina.sh,增加如下配置

CATALINA_OPTS="$CATALINA_OPTS $JPDA_OPTS -agentpath:/opt/jprofiler10/bin/linux-x64/libjprofilerti.so=port=8849,nowait"

启动tomcat,netstat -ntl看到8849端口已经在监听,说明服务端启动成功

客户端安装jprofiler_windows-x64_10_1_2.exe

双击jprofiler_windows-x64_10_1_2.exe,按照提示逐步安装,安装完成后登入下面网站申请license

https://www.ej-technologies.com/download/jprofiler/trial/enter

三、客户端连接服务端

打开软件Start Center -> New Session -> New Remote Integration

选择On a remote computer 下拉框选择Linux X86/AMD64,点击下一步

选择JVM版本,下拉选择Oracle和1.8.0,点击下一步

选择Wait for a connection from the JProfiler GUI,点击下一步

输入远程服务端IP,点击下一步

输入远程服务端安装路径,默认为/opt/jrpofiler10,点击下一步

默认端口为8849,点击下一步

确认配置,如果没问题点击下一步

选择start the session and wait for the remote application,点击完成

出现如下监控图,说明连接成功

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值