我正在嘗試使用IIS資源中包含的WCAT工具包設置壓力/負載測試。用WCAT對ASP.NET/IIS進行壓力測試
使用LogParser,我已經處理了一個帶有配置的UBR文件。它看起來像這樣:
[Configuration]
NumClientMachines: 1 # number of distinct client machines to use
NumClientThreads: 100 # number of threads per machine
AsynchronousWait: TRUE # asynchronous wait for think and delay
Duration: 5m # length of experiment (m = minutes, s = seconds)
MaxRecvBuffer: 8192K # suggested maximum received buffer
ThinkTime: 0s # maximum think-time before next request
WarmupTime: 5s # time to warm up before taking statistics
CooldownTime: 6s # time to cool down at the end of the experiment
[Performance]
[Script]
SET RequestHeader = "Accept: */*\r\n"
APP RequestHeader = "Accept-Language: en-us\r\n"
APP RequestHeader = "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705)\r\n"
APP RequestHeader = "Host: %HOST%\r\n"
NEW TRANSACTION
classId = 1
NEW REQUEST HTTP
ResponseStatusCode = 200
Weight = 45117
verb = "GET"
URL = "http://Url1.com"
NEW TRANSACTION
classId = 3
NEW REQUEST HTTP
ResponseStatusCode = 200
Weight = 13662
verb = "GET"
URL = "http://Url1.com/test.aspx"
它看起來好嗎?
我用這個命令執行控制:wcctl -z StressTest.ubr -a localhost
客戶(S)是這樣執行的:wcclient localhost
當執行客戶端,我得到這個錯誤:main client thread Connect Attempt 0 Failed. Error = 10061
有沒有人在這個世界曾經使用WCAT?
我以前使用過OpenSTA,雖然它可以工作,但它需要您主動登錄到每個客戶端。解析我創建的腳本時,我也遇到了一些奇怪的問題。 – 2008-10-27 18:18:27