Jprofiler配置
客户端
1、解压jprofiler_windows_6_2.zip2、输入sn
3、选择 an application on remote computer
4、根据远程计算机的配置next到最后一步会有一个界面如下:记住-agentpath那一行后面使用
————————————————————————
Integration type: [Generic application]
Selected JVM: Sun 1.6.0 (hotspot)
Startup mode: Wait for a connection from the JProfiler GUI
(1) Please insert
-agentpath:/home/jprofiler6/bin/linux-x64/libjprofilerti.so=port=8849
into the start command of your remote application right after the java command.
A remote session named Remote application on 1231 will be created that connects to a running instance of the remote application that is started with the modified start command.
——————————————————————————
服务器端
下载了jprofiler_linux_6_2_4.sh
1、因为linux下没有图形界面加了参数-c
sh jprofiler_linux_6_2_4.sh -c
安装成功后;
2、修改tomcat/bin下的catalin.sh 增加下面这行:
CATALINA_OPTS="$CATALINA_OPTS $JPDA_OPTS -agentpath:/home/jprofiler6/bin/linux-x64/libjprofilerti.so=port=8849"
3、修改环境变量:
export LD_LIBRARY_PATH=/home/jprofiler6/bin/linux-x86
Ok配置完成。
开始使用jprofiler了~
1、linux机器启动tomcat
2、在自己的机器上启动jprofiler。
3、ok~大功告成