效能監控工具YourKit

rilley發表於2014-10-24

1.下載YourKit(在不同系統或終端下請保持版本一致)

http://www.yourkit.com/java/profiler/index.jsp


2. 解壓LinuxYourKit

tar xfj <archive name>.tar.bz2


3.增加 -agentpath:<full agent library path> VM 選項到java 命令列啟動引數。(預設埠10001)

不同系統的代理庫如下:

Windows, 32-bit Java -agentpath:<profiler directory>\bin\win32\yjpagent.dll
Windows, 64-bit Java -agentpath:<profiler directory>\bin\win64\yjpagent.dll
Mac OS X -agentpath:<profiler directory>/bin/mac/libyjpagent.jnilib
Linux x86, 32-bit Java -agentpath:<profiler directory>/bin/linux-x86-32/libyjpagent.so
Linux x86, 64-bit Java -agentpath:<profiler directory>/bin/linux-x86-64/libyjpagent.so
 Solaris SPARC, 32-bit Java -agentpath:<profiler directory>/bin/solaris-sparc-32/libyjpagent.so
 Solaris SPARC, 64-bit Java -agentpath:<profiler directory>/bin/solaris-sparc-64/libyjpagent.so
 Solaris x86, 32-bit Java -agentpath:<profiler directory>/bin/solaris-x86-32/libyjpagent.so
 Solaris x86, 64-bit Java -agentpath:<profiler directory>/bin/solaris-x86-64/libyjpagent.so
 HP-UX IA64, 32-bit Java -agentpath:<profiler directory>/bin/hpux-ia64-32/libyjpagent.so
 HP-UX IA64, 64-bit Java -agentpath:<profiler directory>/bin/hpux-ia64-64/libyjpagent.so

 

 

 

 

 

 

 

 

 

 

 

 

4.啟動YourKit

YourKit_Home/bin/yjp.sh

 

5.點選connect to remote application,輸入ip和埠(預設10001)

 

相關文章