MyEclipse 2014與jprofiler 的整合,用來分析web project的記憶體使用量情況

來源:互聯網
上載者:User

標籤:myeclipse   記憶體泄露   ubuntu   jprofiler   

今天去示範一個web系統,在示範的過程中,系統突然報500錯誤,登陸到伺服器上發現cpu佔用率到了103%,立馬殺掉了進程然後重新啟動,來完成示範的過程.示範結束後,立馬開始記憶體泄露相關的工作來確保下次不會出現這種緊急情況.jprofiler是一個不錯的記憶體檢測軟體.開發系統IDE用的是MyEclipse 2014,在我之前的blog中有介紹,在Ubuntu中怎麼安裝,這裡就介紹一下整合jprofiler.

1.下載jprofiler,wget http://download-aws.ej-technologies.com/jprofiler/jprofiler_linux_8_1_2.tar.gz

2.解壓jprofiler tar -xvf jprofiler_linux_8_1_2.tar.gz

3.進入目錄啟動jprofiler,cd jprofiler8/bin,./jprofiler.開始安裝選擇下一步就好了,在序號中選擇試用

安裝完成jprofiler後,需要整合到MyEclipse中,先看到MyEclipse安裝目錄下的readme/readme_eclipse.html檔案中對應的eclipse版本是 eclipse-4.3.0,如:


整合jprofiler到Myeclispe外掛程式中:

1.Session->IDE Intergrations->Eclipse 4.3->Intergrate->選擇MyEclipse安裝目錄->choose->ok

         

         2.先運行tomcat,然後點擊MyEclipse->windows->Customize Perspective,然後點擊run->Attache jProfiler to run JVM,運行外掛程式

     3.選中第一個,即分析當前tomcat中啟動並執行記憶體使用量情況,如:



MyEclipse 2014與jprofiler 的整合,用來分析web project的記憶體使用量情況

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.