jprofiler监控tomcat

一、下载和安装
去 https://www.ej-technologies.com/download/jprofiler/version_91
分别下载mac版和linux版的jprofiler 版本一定要一致,分别装在本机和linux服务端
选9.1吧目前10还没有破解码,或者自己牛逼的可以破解也不拦着你用~~~~
jprofiler监控tomcat_第1张图片
1、linux端可以右键rpm方式获取连接,然后在linux服务器的opt目录下用wget https://download-keycdn.ej-technologies.com/jprofiler/jprofiler_linux_9_1_1.rpm下载
然后使用rpm -iv jprofiler_linux_9_1_1.rpm 方式安装,会自动在/opt目录下新建一个jprofiler9文件夹
2、tomcat服务修改:打开bin目录下的Startup.sh 在初始位置或者只要在exec “ PRGDIR"/" P R G D I R " / " EXECUTABLE” run “ @CATALINAOPTS=agentpath:/opt/jprofiler9/bin/linuxx64/libjprofilerti.so=port=8849,nowait @ ” 这 行 之 前 添 加 C A T A L I N A O P T S = ” − a g e n t p a t h : / o p t / j p r o f i l e r 9 / b i n / l i n u x − x 64 / l i b j p r o f i l e r t i . s o = p o r t = 8849 , n o w a i t CATALINA_OPTS”
export CATALINA_OPTS 这一行即可。记住这里一定不要添加在startup.sh的最后一行,最后一行已经是启动命令了,根本读取不到你新增的配置。
重启服务
至此,linux端配置完成
3、mac端安装简单,运行dmg文件即可
二、mac端设置
1、
jprofiler监控tomcat_第2张图片
session->integration wizards->new server integration
2、
jprofiler监控tomcat_第3张图片
选择tomcat版本
3、
jprofiler监控tomcat_第4张图片
选择远程服务
4、
jprofiler监控tomcat_第5张图片

选择jvm
5、
jprofiler监控tomcat_第6张图片

选择启动方式
6、
jprofiler监控tomcat_第7张图片

输入远程服务地址
7、

jprofiler监控tomcat_第8张图片
输入linux端的jprofiler路径
8、
jprofiler监控tomcat_第9张图片

输入自己本地的startup.sh脚本路径,该脚本可以从服务器上用scp down一个,其实只是为了生成最开始说的CATALINA_OPTS=”-agentpath:/opt/jprofiler9/bin/linux-x64/libjprofilerti.so=port=8849,nowait $CATALINA_OPTS”
export CATALINA_OPTS 命令而已,会在同一个路径下生成一个新的startup_jprofiler.sh文件,其实就多了这一行。但是目测不输入没办法往下进行
9、
jprofiler监控tomcat_第10张图片

输入端口默认8849
10、

jprofiler监控tomcat_第11张图片
确认信息
11、

jprofiler监控tomcat_第12张图片
finish
12、

jprofiler监控tomcat_第13张图片
启动会话即可

jprofiler监控tomcat_第14张图片

激活码和具体每个图标的使用参考:https://www.cnblogs.com/AmilyWilly/p/7272160.html?utm_source=itdadao&utm_medium=referral

你可能感兴趣的:(jprofiler)