https://cloud.tencent.com/developer/article/1200069
条件准备
jprofiler for Windows
jprofiler for Linux
注册码:A-J11-Everyone#itmop-hw97xj2kd9z4q#52b539z
注意:
- Windows和Linux的jdk最好一样,或者Windows比Linux的高
- 我跳过了安装破解,破解教程网上自己找,提供注册码亲测有效,jprofiler 11
1. 下载
官网地址:https://www.ej-technologies.com/products/jprofiler/overview.html

-
把Linux的tar文件上传到要部署的服务器上,解压
我的路径:/usr/src -
Windows下解压,bin/jprofiler.exe启动

- 进入后选择

- Tomcat 8或者以上,我用的是Tomcat 9,next

- 我们要监控Linux上的Tomcat,所以不选择on shis computer

- 这里是选择使用的jdk版本,oracle 1.8 (64.bit JVM,如果你的电脑是64的就勾选)

- 选择第二个

- 选择你要连接的服务器的ip,next

- 远程服务器你的解压jprofiler的地址,next
我的:/usr/src/jprofiler11.0

- next

- 把你Linux上的Tomcat/bin/startup.sh文件拷贝到本地,然后找到它打开,next

- 默认端口就行,如果你的端口被占用,记得修改端口,next


- 选择no

- 在你本地放startup.sh的路径下,你可以看见生成了一个startup_jprofiler.sh的文件,把这个文件上次到远程你的Tomcat/bin下

- ps -ef|grep tomcat看一下你们Tomcat启动了没有,如果启动关闭进行,

- kill -9 1871
- cd到Tomcat/bin路径下,给startup_jprofiler.sh文件赋权限:chmod 777 startup_jprofiler.sh
启动startup_jprofiler.sh


- 双击启动Windows的jprofiler中配置ip

确认,然后等一会就会看见内存的信息,恭喜你,连接成功


网友评论