Application Center Test知识点滴积累

简介:
Application Center Test 在测试运行中自动监视 HTTP 性能统计信息,但性能计数器必须在测试运行之前明确进行配置。
请检查 ACTTrace.log 文件和报告,并确保不存在以下错误:
脚本错误 
DNS 错误 
套接字连接错误 
HTTP 错误 
如有必要,请在重新运行测试之前改正其中的错误。

dcomcnfg.exe 启动 DCOM 配置工具

计算页面性能的公式
以下公式通过测量每个请求所需的处理器周期数来量化 Web 应用程序的性能。该公式用所消耗的周期数除以所处理的请求数。
(sum of processor speed x processor use)
________________________________________  = cost, in cycles/request (or Hz/rps)
     number of requests per second
例如,在应力测试中,ASP 页面的最大容量可达每秒 800 个请求,同时 Web 服务器的处理器使用率为 85%。如果 Web 服务器的处理器频率为 700 MHz(每秒 700,000,000 周期),可以使用以下公式来计算页面的成本:
((4 x 700 000 000 cycles/s) x 0.85) 
___________________________________ = 2 975 000 cycles/request
         800 requests/s
计算页面性能的 VB. 代码
使用以下 VB. 函数计算成本:

'''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Function to return the cost of a page, based . 
' stress test values and Web server/cluster hardware. 
'
' Returns: page cost, in millions of cycles per request
'
Function GetPageCost(iSumOfProcessorSpeeds, _ 
                  fAverageProcessorUse, iAverageRPS)
   Dim iSpentCyclesPerSecond
   ' calculate the number of cycles used over the testing period
   iSpentCyclesPerSecond = iSumOfProcessorSpeeds _ 
                              * fAverageProcessorUse
   ' calculate the amount of work performed by the Web server
   If (iAverageRPS > 0) Then
      GetPageCost = iSpentCyclesPerSecond / iAverageRPS
   Else
      GetPageCost = 0
   End If
End Function
 
使用页面成本的示例
了解页面成本有许多用途。
最显而易见的用途是比较两个不同页面的性能,或者比较同一页面在调整前后的成本。
特别是当测试对站点中的所有页面进行请求时,可以通过成本初步估计是否需要随着要处理的通信量的增加、CPU 使用率的更改(或者同时处理两者)添加附加硬件。
在前面的示例中,需要多大的处理器速度才能保证处理两倍的站点通信量,同时使处理器的使用率保持在 40% 左右,以便可以轻松处理至少达到 3200 rp 的临时负载增长?
以下计算表明需要的处理器速度大约为 11900 MHz:
                            page cost x target RPS
estimated processor speed = ______________________
                                 processor use
                            2 975 000 cycles/request x 1600 requests/s
estimated processor speed = __________________________________________
                                                0.40
estimated processor speed =  11 900 000 000 cycles/s
number of 700 MHz processors needed = 11 900 MHz / 700 MHz = 17
新的性能目标要求 Web 服务器群集中有大约 17 个处理器,而原来只需 4 个。再次强调,这些估计仅当处理器速度是限制 Web 应用程序性能的因素时才有意义。




本文转自 fish_yy 51CTO博客,原文链接:http://blog.51cto.com/tester2test/137365,如需转载请自行联系原作者
目录
相关文章
|
4月前
|
Java 测试技术 API
技巧:ZStack如何做Integration Test
笔者工作2年有余,刚开始实习的时候是不知道自动化测试这种神器的,在刚开始工作的时候往往苦于救火灭火再救火,搞的心力憔悴,一度怀疑猿生。实践自动化测试后感觉生产力慢慢的解放了,那个时候搞的还是偏单机应用,测试的Cover也是止步在单机应用上。在接触到了ZStack以后,由于其产品化的特性,对软件质量要求偏高,然作为一个典型的分布式系统,测试的覆盖率却是较高的。在这篇文章,笔者想谈谈对自动化测试的一些想法。
33 0
Selenium成长之路-10简单对象定位之partial link text方法
Selenium成长之路-10简单对象定位之partial link text方法
108 0
Selenium成长之路-10简单对象定位之partial link text方法
|
JavaScript Serverless 网络安全
阿里云Custom Container的CI/CD最佳实践案例
在实际生产过程中,我们往往会遇到这样一个通用的项目持续发布的流程:Git Clone -> Docker Build -> Docker Push -> Deploy Function
297 0
Cloud for Customer的工作中心(work center)加载源代码
Cloud for Customer的工作中心(work center)加载源代码
74 0
Cloud for Customer的工作中心(work center)加载源代码
|
Web App开发 存储 开发者
SAP Cloud for Customer Work Center(工作中心)的实现源代码
SAP Cloud for Customer Work Center(工作中心)的实现源代码
SAP Cloud for Customer Work Center(工作中心)的实现源代码
ABAP TEST-SEAM的使用tips和一些局限
ABAP TEST-SEAM的使用tips和一些局限
153 0
|
安全
Securing the Data Center in a Cloud First World
Looking for steps to protect your data center infrastructure with a multilayered, automated approach to security?
1480 0