jprofiler性能查找問題工具,java大名鼎鼎的分析神器

開啓的時候影響性能,找問題用的。

數據庫、mongdb、jstack、jvm都能監控

1、windows版本默認安裝jprofiler_windows_9_1_1.exe 即可;

2、linux版本/home rz下上傳jprofiler_linux_9_1_1.rpm

chmod +x jprofiler_linux_9_1_1.rpm

rpm -ivh jprofiler_linux_9_1_1.rpm

默認安裝在了 /opt 目錄下

3、/home/server/tomcat1/bin 目錄下

vi catalina.sh

添加 -agentpath:/opt/jprofiler9/bin/linux-x64/libjprofilerti.so=port=8849,nowait

總的:JAVA_OPTS="-Xms256m -Xmx256m -Xmn128m -Xss256k -XX:PermSize=32m -XX:MaxPermSize=32m -Dcom.sun.management.jmxremote.port=10086 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=192.168.1.200 -agentpath:/opt/jprofiler9/bin/linux-x64/libjprofilerti.so=port=8849,nowait"

4、重啓tomcat

ps -ef|grep tomcat

kill -9  進程號

 ./startup.sh & tail -f ../logs/catalina.out

5、打開windows的jprofiler

 

memory:內存

GC Activity:垃圾回收

Heap walker中可以創建堆的快照,點照相機

hot spots熱點:程序裏調用最多的方法

method statisitue:響應時間

 

 

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