下載tptp allinon包:tptp.runtime.allInOne.win32.win32.x86-TPTP-4.5.1.zip
偶嘗試了一下逐一安裝TPTP,結(jié)果是失敗。
下載agntctrl.win_ia32-TPTP-4.5.1.zip (runtime版本)設(shè)置agntctrl
D:eclipse_tptpagntctrl.win_ia32-TPTP-4.5in放到PATH環(huán)境變量
然后執(zhí)行setconfig.bat設(shè)置環(huán)境變量
啟動(dòng)代理acserver:
D:eclipse_tptpagntctrl.win_ia32-TPTP-4.5.0in>acserver
下載javaprofiler.win_ia32-TPTP-4.5.1.zip (runtime版本)
按照說明設(shè)置環(huán)境變量:
a) Set TPTP_AC_HOME=<<Agent Controller Home>>
b) Set JAVA_PROFILER_HOME=%TPTP_AC_HOME%pluginsorg.eclipse.tptp.javaprofiler
c) Set PATH=%JAVA_PROFILER_HOME%;%PATH%;%TPTP_AC_HOME%in
d) Set PATH=%PATH%;%JAVA_HOME%in
啟動(dòng)JAVA程序:java -XrunpiAgent:server=enabledCarModel
在eclipse工程可以看到agent
這里不支持probe insertion
遠(yuǎn)程profile TOMCAT
在catalina.bat java啟動(dòng)參數(shù)加入:-XrunpiAgent:server=enabled
如:
rem Execute Java with the applicable properties
if not "%JPDA%" == "" goto doJpda
if not "%SECURITY_POLICY_FILE%" == "" goto doSecurity
echo "run OK"
%_EXECJAVA% %JAVA_OPTS% -XrunpiAgent:server=enabled
然后eclipse ->run->profile configuration->attach to agent
實(shí)例:
http://www.eclipse.org/tptp/home/documents/tutorials/profilingtool/profilingexample_32.html