加入收藏 | 设为首页 | 会员中心 | 我要投稿 湖南网 (https://www.hunanwang.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 建站 > 正文

Java 性能瓶颈分析工具 你知道几个?

发布时间:2019-05-14 14:23:09 所属栏目:建站 来源:程序猿说
导读:0. Introduction Java 机能优化分为许多个方面,如体系优化、算法优化、代码优化等。代码优化是指开拓职员在研发、测试进程中行使机能瓶颈说明器材快速定位出因为编码存在的机能瓶颈题目并一连举办优化。一种很常见的场景是测试同窗在对处事举办压测时,无

在 JVM 启动参数中添加,然后重启应用。

  1. -javaagent:/home/admin/tprofiler/lib/tprofiler.jar  
  2. -Dprofile.properties=/home/admin/tprofiler/lib/profile.properties 
  • 长途操纵
    1. java -cp tprofiler.jar com.taobao.profile.client.TProfilerClient [192.168.132.*.*] [port] status #长途查察状态操纵 
    2. java -cp tprofiler.jar com.taobao.profile.client.TProfilerClient [192.168.132.*.*] [port] start #长途开始操纵 
    3. java -cp tprofiler.jar com.taobao.profile.client.TProfilerClient [192.168.132.*.*] [port] stop #长途遏制操纵 
    4. java -cp tprofiler.jar com.taobao.profile.client.TProfilerClient [192.168.132.*.*] [port] flushmethod #长途刷出要领数据 
Java 机能瓶颈说明器材

2.2 TProfiler 机能要领的收罗

TProfiler 可以或许天生日记:tmethod.log、tprofiler.log、tsampler.log。

  • 平凡要领、线程信息统计

(编辑:湖南网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读