淘宝商城(天猫)高级技术专家.3年研发+3年性能测试调优/系统测试+4年团队管理与测试架构、研发系统实践. 新舞台新气象, 深化测试基础架构及研发架构,希望能在某个技术领域成为真正的技术大牛。欢迎荐才http://bbs.51testing.com/viewthread.php?tid=120496&extra=&page=1 .邮件: jianzhao.liangjz@alibaba-inc.com,MSN:liangjianzhao@163.com.微博:http://t.sina.com.cn/1674816524

jdk1.5.0_14+Eclipse SDK3.4.1+TPTP部署

上一篇 / 下一篇  2009-01-20 13:15:13 / 个人分类:java性能监控与调优

http://www.eclipse.org/tptp/home/downloads/

下载tptp allinon包:tptp.runtime.allInOne.win32.win32.x86-TPTP-4.5.1.zip

 

偶尝试了一下逐一安装TPTP,结果是失败。

 

下载agntctrl.win_ia32-TPTP-4.5.1.zip (runtime版本)设置agntctrl

D:\eclipse_tptp\agntctrl.win_ia32-TPTP-4.5\bin放到PATH环境变量

然后执行setconfig.bat设置环境变量

 

启动代理acserver

D:\eclipse_tptp\agntctrl.win_ia32-TPTP-4.5.0\bin>acserver

 

下载javaprofiler.win_ia32-TPTP-4.5.1.zip  (runtime版本)

按照说明设置环境变量:

 

a) Set TPTP_AC_HOME=<<Agent Controller Home>>

b) Set JAVA_PROFILER_HOME=%TPTP_AC_HOME%\plugins\org.eclipse.tptp.javaprofiler

c) Set PATH=%JAVA_PROFILER_HOME%;%PATH%;%TPTP_AC_HOME%\bin

d) Set PATH=%PATH%;%JAVA_HOME%\bin

 

 

启动JAVA程序:java -XrunpiAgent:server=enabledCarModel

 

eclipse工程可以看到agent

 

 

 

这里不支持probe insertion

 

 

远程profile TOMCAT

catalina.bat java启动参数加入:-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

 

 

 

实例:

http://www.eclipse.org/tptp/home/documents/tutorials/profilingtool/profilingexample_32.html


TAG: java tptp 性能 profile java性能监控与调优

 

评分:0

我来说两句

Open Toolbar