Java Performance Tuning 阅读小记1
上一篇 /
下一篇 2010-09-10 10:23:30
/ 个人分类:性能测试
目前正在阅读前言部分,看到作者有关
测试策略经验的描述如下:
A Tuning Strategy
Here's a
strategy I have found works well when attacking performance problems:
Identify the main bottlenecks (look for about the top five
bottlenecks, but go higher or lower if you prefer).
Choose the quickest and easiest one to fix, and address it
(except for distributed applications where the top bottleneck is usually the one
to attack: see the following paragraph).
Repeat from Step 1.
其实这可以说是放之四海而皆准的真理了。做任何事情,都是要要先抓住主要矛盾,再解决次要矛盾。因为做
性能测试时可能导致问题的原因有很多,“条条大路通罗马”,都知道罗马,但就是找不到回家的那条路。
在性能测试中要想抓住主要矛盾,可以综合各种测试报告,如profiling report, production log, monitor report等等,先树立几个怀疑对象,再逐一排除。
收藏
举报
TAG: