環境
客戶端:win7+jprofiler_windows-x64_10_0_4.exe
linux服務器:tomcat7+jdk1.7+jprofiler_linux_10_0_4.sh
一、客戶端、服務器安裝jprofiler
服務器安裝 :
1. chmod 777 jprofiler_linux_10_0_4.sh
2. ./jprofiler_linux_10_0_4.sh
......一路yes or enter
3.find / -name jprofiler10-----默認安裝到了/opt/jprofiler10下
客戶端安裝略
二、添加環境變量
vim /etc/profile 添加環境變量
export LD_LIBRARY_PATH=:/opt/jprofiler10/bin/linux-x64
source /etc/profile #立即生效
三、修改tomcat啟動文件
cd /usr/local/tomcat7**/bin
vim catalina.sh 增加以下配置 注8849位默認端口號
CATALINA_OPTS="$CATALINA_OPTS -agentlib:jprofilerti=port=8849 -Xbootclasspath/a:/opt/jprofiler10/bin/agent.jar "
重啟tomcat
四、客戶端和服務器連接
1. session---->Integration Wizard->New Remote Integratation----->
2. 選擇on a remote computer ------>Linux x86/AMD64
3.profiled jvm
4.Startup mode
5.服務器的ip
6.服務器jprofiler安裝路徑
7.默認端口號8849
8.,,,,
9.finish
效果圖:
五、其他說明
服務器日志位置:/usr/local/tomcat7**/logs/catalina.out
客戶端激活碼:https://www.ej-technologies.com/download/jprofiler/trial 填入用戶信息,索要licence