JProfiler 9.1.1安裝和使用

1.linux 安裝
1)下載
JProfiler For Linux 9.1.1 Build 9143 鏈接:http://www.cz88.net/down/203595/
2)安裝
①文件jprofiler_linux_9_1_1.sh 放到/data/admin目錄下
執行命令:
②chmod +x jprofiler_linux_9_1_1.sh
③./ jprofiler_linux_9_1_1.sh -c(根據提示安裝),生成安裝目錄在/data/admin/jprofiler9/
注意,這裏的 -c 意思是用字符方式來安裝,如果機器上沒有X,則加上該參數
提示:
(1) 下載的服務器和客戶端版本必須符合操作系統的類型,jprofiler支持操作系統類型爲windows、MAC os、linux、Solaris、Aix、FreeBSD、HP-UX;
(2) 客戶端需要licence,可以通過在http://www.ej-technologies.com網站上輸入用戶名和郵箱來獲取試用版licence,服務器端不需要licence;
(3) 客戶端和服務器端的版本號要一致,此例中均爲9.1.1。
④配置環境:
當前使用 賬號admin則修改
vi /data/admin/.bash_profile,後面追
PROFILER_HOME=/data/admin/jprofiler9/bin/linux-x64
export LD_LIBRARY_PATH=LDLIBRARYPATH: JPROFILER_HOME
(linux-x64:根據系統選擇)
source .bash_profile 使之生效


2.window 安裝
下載9.1.1 64位版本安裝,安裝流程安裝即可
注意需要用註冊號:

[email protected]#23874-hrwpdp1sh1wrn#0620
[email protected]#36573-fdkscp15axjj6#25257
[email protected]#5481-ucjn4a16rvd98#6038
[email protected]#99016-hli5ay1ylizjj#27215
[email protected]#40775-3wle0g1uin5c1#0674
[email protected]#7009-14frku31ynzpfr#20176
[email protected]#49604-1jfe58we9gyb6#5814
[email protected]#25531-1qcev4yintqkj#23927
[email protected]#96496-1qsu1lb1jz7g8w#23479
[email protected]#20948-11amlvg181cw0p#171159


3.使用
參考鏈接: http://blog.sina.com.cn/s/blog_670bfea20101j3vs.html

遠程鏈接時注意:
1)選擇對應的liunx版本
2)選擇對應的jvm版本
3)startup mode 選擇時
① 如果選擇第一個:waiting for
這裏寫圖片描述
這裏寫圖片描述
-agentpath:/data/admin/jprofiler9/bin/linux-x64/libjprofilerti.so=port=8849 需要在java應用啓動文件中配置
java應用啓動時會一直等待jprofiler鏈接,鏈接成功後纔會執行下面邏輯
②如果選擇第二個:Startup
-agentpath:/data/admin/jprofiler9/bin/linux-x64/libjprofilerti.so=port=8849,nowait 同樣在java應用啓動文件中配置
java應用無須等待jprofiler鏈接

發佈了30 篇原創文章 · 獲贊 4 · 訪問量 8萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章