uProfilerJVM性能監(jiān)控和分析工具
uProfiler Community 1.0是面向主題的JVM性能監(jiān)控和分析工具,它利用字節(jié)碼技術(shù)分析class,收集函數(shù)的執(zhí)行耗時(shí),并以圖形化的界面實(shí)時(shí)顯示JVM性能。不同于JVisual VM系統(tǒng)層面的監(jiān)控和分析,uProfiler面向主題,有助于開發(fā)人員和系統(tǒng)管理人員快速的發(fā)現(xiàn)和定位代碼中潛在的問(wèn)題。
uProfiler Community 1.0提供的主要功能有:
- 輕量級(jí)的函數(shù)執(zhí)行耗時(shí)收集框架,并以JMX接口提供對(duì)外訪問(wèn),占用資源少
- 面向主題的類分析和歸類,目前內(nèi)置了Spring、Struts框架代碼執(zhí)行分析器。
- 支持自定義主題
- 跟蹤當(dāng)前JVM中所執(zhí)行的SQL語(yǔ)句
- 圖形化、表格化的監(jiān)控客戶端
使用方法:下載uProfiler Community 1.0發(fā)行版后,解壓后,切換到example目錄,執(zhí)行下面的命令(假設(shè)您已經(jīng)安裝并配置好了Maven),
export MAVEN_OPTS="-javaagent:../lib/uAgent-1.0.0.jar -Dagent.config=src/main/resources/agent.properties -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.ssl=false" ## 對(duì)于windows系統(tǒng) set MAVEN_OPTS="-javaagent:../lib/uAgent-1.0.0.jar -Dagent.config=src/main/resources/agent.properties -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.ssl=false"
然后啟動(dòng)example工程
mvn jetty:run
然后雙擊執(zhí)行發(fā)行版中的uProfiler_Client.jar或者在終端執(zhí)行
java -jar uProfiler_Client.jar
點(diǎn)擊New按鈕按照向?qū)Ы缑妫B接到127.0.0.1:9999 JMX服務(wù)端口,在瀏覽器中輸入http://localhost:8080/resources/file.html,上傳文件,查看圖形界面的變化
樣板工程中有詳細(xì)的配置項(xiàng)目說(shuō)明,
下載地址:http://sourceforge.net/projects/uprofiler/files/uProfiler%20Community%201.0%20dist.zip/download
@儀山湖
評(píng)論
圖片
表情
