效能分析工具-JProfiler__工具

來源:互聯網
上載者:User

一.下載JProfiler,選擇各自OS下的版本

http://www.ej-technologies.com/download/jprofiler/files

可視化版本串連遠程主機(遠程主機linux 見步驟2)










二.一般應用都部署在linux下,介紹linux下的安裝(本例監控ant服務)


第一步中下載linux版本jprofiler_linux_8_1_1.sh,上傳到linux

#chmod 777 jprofiler_linux_8_1_1.sh

#./jprofiler_linux_8_1_1.sh –c

按步驟安裝。


三.設定/etc/profile環境變數


在/etc/profile檔案裡添加:export LD_LIBRARY_PATH=/opt/jprofiler6/bin/linux-x64

立即生效 #source /etc/profile


四.在需要監控服務的啟動指令碼中添加配置


在第一步串連遠程服務時,jprofiler提示insert "-agentpath:/opt/jprofiler8/bin/linux-x64/libjprofilerti.so=port=8850";
將-agentpath:/opt/jprofiler8/bin/linux-x64/libjprofilerti.so=port=8850添加到需要監控服務的啟動指令碼。
ANT服務,在$ANT_HOME/bin下,在ant檔案中添加: ANT_OPTS="$ANT_OPTS  -agentpath:/opt/jprofiler8/bin/linux-x64/libjprofilerti.so=port=8850"。
TOMCAT服務,bin目錄下catalina.sh中添加JAVA_OPTS="-agentpath:/opt/jprofiler8/bin/linux-x64/libjprofilerti.so=port=8850"





聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.