avatar
Java Performance Tool# Java - 爪哇娇娃
o*t
1
大家都用什么做JAVA PERFORMANE 测试的?
I have a java application running on Linux server without GUI. Sometime it
costs a lot of CPU, and in top, I can only tell the java process takes the
CPU, but no detail clues on which class takes the most and so on.
I searched web and found
http://java.sun.com/developer/technicalArticles/Programming/perfanal/
http://java.sun.com/performance/index.jsp
and JProbe
Which one is good or suitable for my case?
avatar
c*s
2
你想测什么呢?
测覆盖可以用clover或者jcoverage,都是免费。
eclipse里haydes用起来很方便,可以测覆盖,创建实例分布情况,内存占用等。也是免
费。
jprobe的很多功能和haydes类似,但精细很多。可以dig into每个实例。还可以通过编程
设置监测点等,满足复杂的测试要求。

【在 o******t 的大作中提到】
: 大家都用什么做JAVA PERFORMANE 测试的?
: I have a java application running on Linux server without GUI. Sometime it
: costs a lot of CPU, and in top, I can only tell the java process takes the
: CPU, but no detail clues on which class takes the most and so on.
: I searched web and found
: http://java.sun.com/developer/technicalArticles/Programming/perfanal/
: http://java.sun.com/performance/index.jsp
: and JProbe
: Which one is good or suitable for my case?

avatar
o*t
3
有时候JAVA占用80-90% CPU资源, 我想知道是哪个CLASS占用那摸多CPU. 应该用什么呢?




【在 c*****s 的大作中提到】
: 你想测什么呢?
: 测覆盖可以用clover或者jcoverage,都是免费。
: eclipse里haydes用起来很方便,可以测覆盖,创建实例分布情况,内存占用等。也是免
: 费。
: jprobe的很多功能和haydes类似,但精细很多。可以dig into每个实例。还可以通过编程
: 设置监测点等,满足复杂的测试要求。

avatar
c*s
4
CPU被占慢不是坏事儿,总比老是等着设备读写强。我在做的优化都是尽量减少花在设备
,数据库访问上的等待,使CPU的利用率最大。
如果你怀疑有程序在忙一些不该忙的事,可以先用eclipse hayes profile一个小程序,
生成一个方法被调用历史的报告,就能找到运行次数最多的几个方法,看看他们是不是在
白忙。
或者用clover生成覆盖报告(需要写一些ant脚本),看哪儿几行跑的最多。

?


it
the

【在 o******t 的大作中提到】
: 有时候JAVA占用80-90% CPU资源, 我想知道是哪个CLASS占用那摸多CPU. 应该用什么呢?
:
: 免
: 程

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。