visual java_简介在VisualVM中完整的Java程序执行

考虑使用

HPROF并使用像

HPjmeter这样的工具打开数据文件 – 或者只是在喜欢的编辑器中读取生成的文本文件。

Command used: javac -J-agentlib:hprof=heap=sites Hello.java

SITES BEGIN (ordered by live bytes) Fri Oct 22 11:52:24 2004

percent live alloc'ed stack class rank self accum bytes objs bytes objs trace name

1 44.73% 44.73% 1161280 14516 1161280 14516 302032 java.util.zip.ZipEntry

2 8.95% 53.67% 232256 14516 232256 14516 302033 com.sun.tools.javac.util.List

3 5.06% 58.74% 131504 2 131504 2 301029 com.sun.tools.javac.util.Name[]

4 5.05% 63.79% 131088 1 131088 1 301030 byte[]

5 5.05% 68.84% 131072 1 131072 1 301710 byte[]

HPROF is capable of presenting CPU usage, heap allocation statistics, and monitor contention profiles. In addition, it can also report complete heap dumps and states of all the monitors and threads in the Java virtual machine.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值