1、jprofiler8下载安装:java
1、下载:jbox上linux
略windows
2、安装:tomcat
①windows版安装服务器
(略)jvm
序列号: ide
L-Larry_Lau@163.com#23874-hrwpdp1sh1wrn#0620
L-Larry_Lau@163.com#36573-fdkscp15axjj6#25257
L-Larry_Lau@163.com#5481-ucjn4a16rvd98#6038
L-Larry_Lau@163.com#99016-hli5ay1ylizjj#27215
L-Larry_Lau@163.com#40775-3wle0g1uin5c1#0674
L-Larry_Lau@163.com#7009-14frku31ynzpfr#20176
L-Larry_Lau@163.com#49604-1jfe58we9gyb6#5814
L-Larry_Lau@163.com#25531-1qcev4yintqkj#23927
L-Larry_Lau@163.com#96496-1qsu1lb1jz7g8w#23479
L-Larry_Lau@163.com#20948-11amlvg181cw0p#171159ui
②linux配置:spa
解压安装文件,复制到指定目录下;3d
在/etc/profile中添加
export JPROFILER_HOME=/export/zhangjf/jprofiler8
exportLD_LIBRARY_PATH=$JPROFILER_HOME/bin/linux-x86
其中,JPROFILER_HOME配置的为你实际安装目录;64位系统配置linux-x86
2、windows下远程配置
1、选择远程集成
2、选择远程系统
3、选在jvm版本
4、选择等待、启动方式
5、输入远程服务器IP
6、输入远程服务器上jprofiler的绝对路径
7、输入监听端口:我选择默认端口
8、生成监听参数(复制出黑体部分 -agentpath部分)
9、完成
3、服务器端启动
1、main方式启动:
把上述第8步中的监控参数,加入到main方式启动参数中启动。例如:
原:java -classpath ../conf/:../lib/*com.jd.test.saf2x.ServerMain 21 &
添加后:java -classpath ../conf/:../lib/*-agentpath:/export/zhangjf/jprofiler8/bin/linux-x64/libjprofilerti.so=port=8849,nowait com.jd.test.saf2x.ServerMain 21&
这样在启动服务时,就启动jprofiler监控用于分析。
2、tomcat方式启动:
在startup.sh中的CATALINA_OPTS中增长上述的监控参数。以下:
加入前:
…………
exec"$PRGDIR"/"$EXECUTABLE" start "$@"
加入后:
…………
CATALINA_OPTS="-agentpath:/export/zhangjf/jprofiler8/bin/linux-x64/libjprofilerti.so=port=8849,nowait $CATALINA_OPTS"
export CATALINA_OPTS
exec"$PRGDIR"/"$EXECUTABLE" start "$@"
这样在启动tomcat时,就启动jprofiler监控用于分析。
4、客户端查看
启动查看:
查看监控分析页面: