下載JProfiler包 wget http://download-keycdn.ej-technologies.com/jprofiler/jprofiler_linux_9_2.rpm 安裝JProfiler rpm -ivh jprofiler_linux_9_2.rpm 安裝JProfile ...
- 下載JProfiler包
wget http://download-keycdn.ej-technologies.com/jprofiler/jprofiler_linux_9_2.rpm - 安裝JProfiler
rpm -ivh jprofiler_linux_9_2.rpm - 安裝JProfiler客戶端
http://download-keycdn.ej-technologies.com/jprofiler/jprofiler_windows-x64_9_2.exe - 客戶端安裝完成後,打開客戶端。Start Center → New Session → New Server Integration。會彈出“integration Wizard“視窗,依次選擇如圖:
- 創建完成後,會在本地生成一個名為“startup_jprofiler.sh”啟動腳本,會與start.sh路徑一樣。再將“startup_jprofiler.sh”啟動腳本 拷貝到被監控伺服器上,tomcat/bin/目錄下。
此腳本需要修改最後一行,由“exec "$PRGDIR"/"$EXECUTABLE" run "$@"”修改為“exec "$PRGDIR"/"$EXECUTABLE" start "$@"”
最後stop被監控伺服器的java進程,用“startup_jprofiler.sh”腳本啟動tomcat,打開剛纔創建的配置進行訪問就 OK了