【监控】Jprofiler监控tomcat的配置方法及报错解决过程

准备工作:

1.Jprofiler for Linux安装包一个(服务端)

2.Jprofiler for windows安装包一个(客户端)

3.各自安装、解压

Linux:/opt/jprofiler7

配置过程:

1.打开客户端jprofiler,关掉向导

2.如图

【监控】Jprofiler监控tomcat的配置方法及报错解决过程_第1张图片

(1)选择远程服务器系统


(2)此处填写服务器的ip地址

【监控】Jprofiler监控tomcat的配置方法及报错解决过程_第2张图片

(3)此处填写服务器jprofiler的安装目录

【监控】Jprofiler监控tomcat的配置方法及报错解决过程_第3张图片

(4)此处填写监听端口

【监控】Jprofiler监控tomcat的配置方法及报错解决过程_第4张图片

(5)此时将以下内容添加进服务器tomcat的catalina.sh

-agentpath:/opt/jprofiler7/bin/linux-x86/libjprofilerti.so=port=8849

【监控】Jprofiler监控tomcat的配置方法及报错解决过程_第5张图片


(6)然后重启tomcat

此时报错:

Could not find agent library /opt/jprofiler7/bin/linux-x64/libjprofilerti.so in absolute path, with error: /opt/jprofiler7/bin/linux-x64/libjprofilerti.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)

原因:找不到对应目录下的libjprofilerti.so

解决:将配置中的路径中的Linux-x64改为Linux-x86

【监控】Jprofiler监控tomcat的配置方法及报错解决过程_第6张图片

然后启动tomcat同时监控日志

(7)日志显示:

【监控】Jprofiler监控tomcat的配置方法及报错解决过程_第7张图片

(8)客户端jprofiler继续

【监控】Jprofiler监控tomcat的配置方法及报错解决过程_第8张图片

(9)监控页面

【监控】Jprofiler监控tomcat的配置方法及报错解决过程_第9张图片


备注:未特别提及之处均默认next操作。

备注2:监控具体分析另起一篇阐述。


你可能感兴趣的:(监控)