jprofiler安装及监控
一、jprofiler下载
下载64位jprofiler_9_2_1
链接:https://pan.baidu.com/s/1n-UTM7WZeWokwjRphyX0Og 密码:ue8c
二、linux服务器上安装jprofiler
1、上传下载文件jprofiler_linux_9_2_1.sh到linux服务器,路径为/home/wl
2、赋权安装jprofiler
cd /home/wl
chmod +x jprofiler_linux_9_2_1.sh
./jprofiler_linux_9_2_1.sh
三、客户端安装jprofiler
客户端安装的jprofiler要与服务端保持一致,客户端安装比较简单,再次不再赘述。客户端安装过程中需要输入***,***网上很多,随便百度几个。如下列出jprofiler9.2的几个***。
JProfiler 9.2 *** 2016-6-21
按默认选择“Single or evaluation license” ,Name 和 Company 随意
[email protected]#23874-hrwpdp1sh1wrn#0620
[email protected]#36573-fdkscp15axjj6#25257
[email protected]#5481-ucjn4a16rvd98#6038
[email protected]#99016-hli5ay1ylizjj#27215
[email protected]#40775-3wle0g1uin5c1#0674
[email protected]#7009-14frku31ynzpfr#20176
[email protected]#49604-1jfe58we9gyb6#5814
[email protected]#25531-1qcev4yintqkj#23927
[email protected]#96496-1qsu1lb1jz7g8w#23479
[email protected]#20948-11amlvg181cw0p#171159
四、客户端连接服务器的tomcat
1、运行 Jprofiler,选择Start Center->New Session->New Remote Integratation;
2、选择服务器操作系统内容
3、选择jdk信息
4、选择启动模式
5、输入服务器ip
6、选择远程服务器上jprofiler安装路径
7、选择同步设置方式
8、选择启动脚本
选择一个启动的脚本,这里暂时可以找一个本地tomcat典型的启动脚本startup.sh()最好是从服务器上down下来的)然后jprofiler会根据这个sh生成一份适应于jprofiler的sh文件,原startup.sh文件并不会做任何修改。
9、输入服务器中jprofiler端口号
10、生成配置文件
1)生成文件 C:\Users\qingteng\.jprofiler9\config.xml,将config.xml拷贝到远程服务器上的/opt/jprofiler9/config路径下
2)将生成的startup_jprofiler.sh文件拷贝到tomcat的bin目录下
10、重启tomcat,启动时用startup_jprofiler.sh文件启动
重启tomcat后,jprofiler即可连接上,如下