在 Eclipse 中集成JProfiler 進行 JAVA 項目性能分析


下載 jprofiler http://www.ddooo.com/softdown/150941.htm

1.雙擊安裝


2.選擇路徑


默認路徑:Install into:C:\Program Files\jprofiler11
自定義:Customize installation
選擇完成后點擊 next


3.選擇 I accept the agreement 點擊 next


4.開始安裝


5.安裝完畢后默認 next


6.注冊


選擇 Enter license key
這里點擊注冊機 KeyGen.exe
輸入User ID 和 User Name
點擊 Generate 生成秘鑰

回到注冊界面,在 Name 和 Company 中輸入剛才注冊機中輸入的User ID 和 User Name
License key 中輸入注冊機中的秘鑰

點擊 next


7.選擇要使用的IDE


Eclipse
點擊 Integrate 配置 Eclipse 所在路徑,這里需要eclipse 關閉。

點擊 next,選擇不啟動 jprofile 安裝結束


8.啟動 eclipse

開始使用 jprofile
在 servers 中的Tomcat上右鍵選擇 Profile 啟動web項目
彈出 jprofile 界面,選擇 Intrumentation 這個信息比較詳細
點擊 Ok 暫時使用默認配置
注意:第一次啟動會失敗,回到 eclipse 中
重新啟動:在 servers 中的Tomcat上右鍵選擇 Profile 啟動web項目
現在 jprofile 就已經開始分析java項目了,可以看到內存、垃圾回收、類、線程、CPU等情況

開啟內存監控:

live memory -> Recorded Objects -> Record Memory

其他監控開啟類似

 

詳細使用可以參考:

https://segmentfault.com/a/1190000017795841


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM