脚本错误
DNS 错误
套接字连接错误
HTTP 错误
如有必要,请在重新运行测试之前改正其中的错误。
dcomcnfg.exe 启动 DCOM 配置工具
计算页面性能的公式
以下公式通过测量每个请求所需的处理器周期数来量化 Web 应用程序的性能。该公式用所消耗的周期数除以所处理的请求数。
________________________________________ = cost, in cycles/request (or Hz/rps)
number of requests per second
例如,在应力测试中,ASP 页面的最大容量可达每秒 800 个请求,同时 Web 服务器的处理器使用率为 85%。如果 Web 服务器的处理器频率为 700 MHz(每秒 700,000,000 周期),可以使用以下公式来计算页面的成本:
___________________________________ = 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
iSpentCyclesPerSecond = iSumOfProcessorSpeeds _
* fAverageProcessorUse
If (iAverageRPS > 0) Then
GetPageCost = iSpentCyclesPerSecond / iAverageRPS
Else
GetPageCost = 0
End If
End Function
使用页面成本的示例
了解页面成本有许多用途。
estimated processor speed = ______________________
processor use
estimated processor speed = __________________________________________
0.40
新的性能目标要求 Web 服务器群集中有大约 17 个处理器,而原来只需 4 个。再次强调,这些估计仅当处理器速度是限制 Web 应用程序性能的因素时才有意义。