`
xitong
  • 浏览: 6156999 次
文章分类
社区版块
存档分类
最新评论

性能测试指标及常用的监控工具

 
阅读更多
监控指标<wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">性能测试通常需要监控的指标包括:</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">1.服务器</span><a href="http://user.qzone.qq.com/783861658/blog/%3Cfont%3ELinux%5B/B%5D%5B/U%5D" target="_blank" style="color:rgb(37,149,183); margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; text-decoration:none; font-family:Tahoma; font-size:14px; line-height:22px">Linux<wbr><wbr></wbr></wbr></a><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">(包括CPU、Memory、Load、I/O)。</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">2.数据库:1.Mysql 2.Oracle(缓存命中、索引、单条SQL性能、</span><a href="http://user.qzone.qq.com/783861658/blog/%3Cfont%3E%CA%FD%BE%DD%BF%E2%5B/B%5D%5B/U%5D" target="_blank" style="color:rgb(37,149,183); margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; text-decoration:none; font-family:Tahoma; font-size:14px; line-height:22px">数据库<wbr><wbr></wbr></wbr></a><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">[/url]线程数、数据池连接数)。</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">3.中间件:1.Jboss 2. Apache(包括线程数、连接数、</span><a href="http://user.qzone.qq.com/783861658/blog/%C8%D5%D6%BE%5B/B%5D%5B/U%5D" target="_blank" style="color:rgb(37,149,183); margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; text-decoration:none; font-family:Tahoma; font-size:14px; line-height:22px">日志<wbr><wbr></wbr></wbr></a><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">)。</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">4.网络: 吞吐量、吞吐率。</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">5.应用: jvm内存、日志、Full GC频率。</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">6.监控</span><a href="http://user.qzone.qq.com/783861658/blog/%3Cfont%3E%B9%A4%BE%DF%3C/font%3E%5B/B%5D%5B/U%5D" target="_blank" style="color:rgb(37,149,183); margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; text-decoration:none; font-family:Tahoma; font-size:14px; line-height:22px">工具<wbr><wbr></wbr></wbr></a><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">(</span><a href="http://user.qzone.qq.com/783861658/blog/%3Cfont%3ELoadRunner%5B/B%5D%5B/U%5D" target="_blank" style="color:rgb(37,149,183); margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; text-decoration:none; font-family:Tahoma; font-size:14px; line-height:22px">LoadRunner<wbr><wbr></wbr></wbr></a><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">[/url]):用户执行情况、场景状态、事务响应时间、TPS等。</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">7.测试机资源:CPU、Memory、网络、磁盘空间。</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><strong><wbr>监控工具</wbr></strong><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">性能测试通常采用下列工具进行监控:</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">1.Profiler。一个记录log的类,</span><a href="http://user.qzone.qq.com/783861658/blog/%B0%A2%C0%EF%B0%CD%B0%CD%5B/B%5D%5B/U%5D" target="_blank" style="color:rgb(37,149,183); margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; text-decoration:none; font-family:Tahoma; font-size:14px; line-height:22px">阿里巴巴<wbr><wbr></wbr></wbr></a><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">集团自主</span><a href="http://user.qzone.qq.com/783861658/blog/%3Cfont%3E%BF%AA%B7%A2%3C/font%3E%5B/B%5D%5B/U%5D" target="_blank" style="color:rgb(37,149,183); margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; text-decoration:none; font-family:Tahoma; font-size:14px; line-height:22px">开发<wbr><wbr></wbr></wbr></a><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">,嵌入到</span><a href="http://user.qzone.qq.com/783861658/blog/%3Cfont%3E%D3%A6%D3%C3%3C/font%3E%5B/B%5D%5B/U%5D" target="_blank" style="color:rgb(37,149,183); margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; text-decoration:none; font-family:Tahoma; font-size:14px; line-height:22px">应用<wbr><wbr></wbr></wbr></a><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><a href="http://user.qzone.qq.com/783861658/blog/%3Cfont%3E%B4%FA%C2%EB%3C/font%3E%5B/B%5D%5B/U%5D" target="_blank" style="color:rgb(37,149,183); margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; text-decoration:none; font-family:Tahoma; font-size:14px; line-height:22px">代码<wbr><wbr></wbr></wbr></a><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">中使用。</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">2.Jstat。监控</span><a href="http://user.qzone.qq.com/783861658/blog/%3Cfont%3Ejava%5B/B%5D%5B/U%5D" target="_blank" style="color:rgb(37,149,183); margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; text-decoration:none; font-family:Tahoma; font-size:14px; line-height:22px">java<wbr><wbr></wbr></wbr></a><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">[/url]进程GC情况,判断GC是否正常。</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">3.JConsole。监控java内存、java CPU使用率、线程执行情况等,需要在JVM参数中进行配置。</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">4.JMap。监控java程序是否有内存泄漏,需要配合eclipse插件或者MemoryAnalyzer来使用。</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">5.JProfiler。全面监控每个节点的CPU使用率、内存使用率、响应时间累计值、线程执行情况等,需要在JVM参数中进行配置。</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">6.Nmon。全面监控linux系统资源使用情况,包括CPU、内存、I/O等,可独立于应用监控。</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">7.Valgrind。监控C/C++程序是否存在内存泄漏,基于linux环境。</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">8.Vmmap和ApplicationVerifier。监控C/C++程序是否存在内存泄漏,基于windows环境。</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><strong><wbr>性能分析</wbr></strong><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">可按以下顺序:</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">中间件瓶颈(apache/jboss参数配置、数据库参数配置)-&gt;</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">应用服务的debug log -&gt;</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">应用服务的filter log -&gt;</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">本应用的性能瓶颈(SQL语句、索引、业务逻辑、线程池设置、算法)-&gt;</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">服务提供者的性能瓶颈 -&gt;</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">相关联的底层存储应用的性能瓶颈</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><strong><wbr>分析标准</wbr></strong><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">通过性能指标的表现形式,分析性能是否稳定。比如:</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">1.响应时间是否符合性能预期,表现是否稳定。</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">2.应用日志中,超时的概率,是否在可接受的范围之内。</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">3.TPS维持在多大的范围内,是否有波形出现,标准差有多少,是否符合预期。</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">4.服务器CPU、内存、load是否在合理的范围内,等等。</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><strong><wbr>分析工具</wbr></strong><wbr style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">对于部分性能指标,可借助自动分析工具,统计出数据的总体趋势:</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">1.LoadRunner analysis</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">LoadRunner analysis是loadrunner的一个部件,用于将运行过程中所采集到的数据生成报表,主要用于采集TPS、响应时间、服务器资源使用情况等变化趋势。</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">2.Memory Analyzer</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">Memory Analyzer工具可以解析Jmap dump出来的内存信息,查找是否有内存泄漏。</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">3.nmon_analyser</span><br style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px">nmon工具可以采集服务器的资源信息。列出CPU、MEM、网络、I/O等资源指标的使用情况。</span><span style="color:rgb(84,84,84); font-family:Tahoma; font-size:14px; line-height:22px"></span> </wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr>
分享到:
评论

相关推荐

    性能测试指标及常用监控工具

    性能测试指标及常用监控工具

    软件性能测试与调优指南

    简介 6 1 概述 7 1.1. 性能测试目标 7 1.2. 性能测试类型 7 1.3. 性能测试阶段 7 1.4. 性能测试过程 8 2 分析性能需求 8 2.1. 了解系统性能需求 8 2.2. 建立数据模型 9 ...7.11附录11:Jprofiler性能监控工具简介 33

    服务器监控及性能优化.pptx

    ---分析 各种开源工具、内嵌API、心跳等多种检测方式 硬件信息 服务器监控及性能优化全文共27页,当前为第9页。 游戏内分析系统设计与实现 帧速率 网络包 数目 网络连 接数目 房间 数目 线程 状态 NPC 数量 数学 ...

    nmon对linux和AIX系统主流压力测试工具

    nmon工具监控linux和AIX性能常用的指标采集数据汇总,非常实用和方便。

    压力测试工具Pylot.rar

    在网站服务器压力Web性能测试中有提到常用的三个Web服务压力测试工具:Apache Bench,Webbench,http_load,这也是大家使用得比较多的负载测试软件,只不过,Apache Bench,Webbench,http_load适合于Linux平台上运行。...

    北京中科信软 LoadRunner培训课件

    • 性能测试监控方法,常用性能监控指标,性能测试结果分析 • 配置多IP地址,脚本语法解释 • 各协议下常用函数,协议的选择 • 脚本修改,关联 • Windows、Unix系统监控方法和指标分析详解 • 网络应用服务器和...

    网络听诊管理监控系统.part01

    网络健康性能及QOS指标实时显示。 系统安全 1. 实现系统管理员用户的权限、职责管理;实现用户的增加、修改、删除和查询,及用户权限的增加、 修改、删除与查询; 2. 实现重要数据库的自动备份、自动恢复; 3. ...

    loadrunner测试资料

    负载测试一般使用工具完成,有 LoadRunner,Webload,QALoad等,主要的内容都是编写出测试脚本,脚本中一般包括用户常用的功能,然后运行,得出报告。使用压力测试工具对web服务器进行压力测试。测试可以帮助找到...

    loadrunner 11使用教程

    常用性能指标介绍 71 事务(Transation) 71 Web资源分析(Web Resources) 72 网页元素细分(Web Page Breakdown) 74 其他指标 76 性能测试资源占用率分析方法 76 附录:LoadRunner常用函数 77

    计算机网络技术第五章知识点.doc

    5.1网络管理 网络管理中心:通常由一组功能... 常用的故障管理工具有网络系统、协议分析仪、电缆测试仪、冗余系统、数据档案和备 份设备。 性能管理的指标通常包括网络响应时间、吞吐量、费用和网络负载。 记账管理主

    LTE华为后台U2000操作指导书2017整理

    在eNodeB下进行实时性能监控和测试 74 干扰排查跟踪 74 监控小区性能 76 监控扇区性能 78 传输监控性能 78 用户监控性能 79 RRU监控性能 82 八. 信令跟踪与性能监控 83 1、 信令跟踪 83 2、 S1标准信令跟踪 84 3、...

    测试覆盖率

    例如,如果已经确定了所有性能测试需求,则可以引用测试结果来得到评测,如已经核实了 75% 的性能测试需求。  如果应用基于代码的覆盖,则测试策略是根据测试已经执行的源代码的多少来表示的。这种测试覆盖策略类型...

    大型分布式网站架构与实践

     4.4.2 性能测试工具 285  4.4.3 性能优化措施 292  4.5 Java应用故障的排查 314  4.5.1 常用的工具 314  4.5.2 典型案例分析 331  第5章 数据分析 337  本章主要介绍和解决如下问题:  分布式系统中日志...

    2019数据运营思维导图

    数据库、运营后台等 工作内容 数据监控 检测异常指标,发现用户对您产品的”怒点“ 如:多次获取手机验证码,次数剧增 这里需要考虑有一个监控指标 新功能数据分析 通过留存曲线检验新功能的效果 通过留存看新功能...

    数据运营思维导图

    常用数据分析工具 友盟、Talkingdata 友盟的页面访问分析,对帮助分析用户流失有重要指导意义 网站Alexa排名查询、爱站网、中国网站排名、网络媒体排名 禅大师、ASO100 各种指数 百度指数、搜狗指数、腾讯浏览...

    百度推广-搜索营销新视角

    第1章 认识搜索引擎营销 1.1 营销基础知识 1 1.1.1 大数据环境下的消费者洞察——SIVA 1 1.1.2 常见的营销概念辨析 2 1.1.3 定义营销沟通问题 3 1.1.4 营销沟通要素 5 ...附录B 搜索营销常用指标标准化定义 286

    多媒体教室

    多媒体网络教室经过严格的软、硬件测试过程,全面支持 Windows 系列操作系统,包括 Windows 9X、Windows Me、Windows NT 4.0、Windows 2000、Windows XP以及 Windows RPL/PXE 无盘工作站,支持跨网段校园网教学,对...

    WindowsServer2016系统管理视频教程csdn.txt

    6-3性能监视器监控性能指标19:47 6-4管理Windows日志08:52 第7章配置系统安全策略1小时27分钟8节 7-1配置账户密码策略20:21 7-2账户锁定策略09:55 7-3制定审核策略记录**事件14:18 7-4用户对操作系统的权限分配12:07...

Global site tag (gtag.js) - Google Analytics