首先在远程服务器上下载jprofile Linux版本,
1)解压:
wget http://download-keycdn.ej-technologies.com/jprofiler/jprofiler_linux_9_1_1.tar.gz
# tar -xvzf jprofiler9.tar.gz
2)在tomcat中启动jprofile代理:
JPROFILE_REMOTE="-agentpath:/data/jprofiler9/bin/linux-x64/libjprofilerti.so=port=8849,nowait"
CATALINA_OPTS="$CATALINA_OPTS $JMX_REMOTE $JPROFILE_REMOTE"
3)客户端使用:
客户端要和远程服务端的jprofile版本一致。
A、session——integration wizards——New remote integration
B、选择远程监控的平台linux,点击next
C、选择jdk版本,如果服务器是64位的jdk则勾上64 bit jvm,点击next:
D、选择等待连接,点击next
E、输入服务端ip地址,点击next
F、输入服务端机器上的jprofiler的安装路径,点击next
G、端口默认8849,点击next
H、提示需要在服务端插入下面的启动命令:-agentpath:/data/jprofiler9/bin/linux-x64/libjprofilerti.so=port=8849,nowait