I'm trying to setup a stress/load test using the WCAT toolkit included in the IIS Resources.
我正在尝试使用IIS资源中包含的WCAT工具包来设置压力/负载测试。
Using LogParser, I've processed a UBR file with configuration. It looks something like this:
使用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"
Does it look OK?
它看起来不错吗?
I execute the controller with this command: wcctl -z StressTest.ubr -a localhost
我用这个命令执行控制器:wcctl -z StressTest.ubr -a localhost
The Client(s) is executed like this: wcclient localhost
客户端执行如下:wcclient localhost
When the client is executed, I get this error: main client thread Connect Attempt 0 Failed. Error = 10061
当客户端执行时,我收到此错误:主客户端线程Connect Attempt 0失败。错误= 10061
Has anyone in this world ever used WCAT?
这个世界上有没有人曾经使用过WCAT?
7 个解决方案
#1
2
I'd look at updating to WCat 6.3 - available here for x86 and here for x64
我想看看更新到WCat 6.3 - 这里可用于x86,这里用于x64
They've changed the settings/scenario file strucutures, which is a little painful, but should suit your needs.
他们已经改变了设置/场景文件结构,这有点痛苦,但应该适合您的需求。
#2
2
I've just started evaluating wcat 6.3 and I'm afraid my experience has been a bit disapointing in terms of online support/community.
我刚刚开始评估wcat 6.3,我担心我的经验在线支持/社区方面有点令人失望。
There is also a major bug in the wcat.wsf script - see:
wcat.wsf脚本中还有一个主要错误 - 请参阅:
http://forums.iis.net/t/1153312.aspx
I'm now struggling with getting performance counter measurement working.
我现在正在努力让性能计数器测量工作。
#3
2
I've had good success with WCAT, though I'm struggling with simulating NTLM connections.
虽然我正在努力模拟NTLM连接,但我在WCAT方面取得了很大的成功。
I'm using 6.3, so my config files look very different from yours. Some gotchas I noted along the way:
+ Make sure you've got your firewall turned off, or holes punched through for WMI.
+ Each thing you set in the request header has a tremendous impact on throughput. Apples to apples must have the same request headers.
+ Remote calls with multiple clients work only after correcting the bug identified by sthorogood.
我使用6.3,所以我的配置文件看起来与你的不同。我在路上注意到了一些问题:+确保你已经关闭了防火墙,或者为WMI打了一针。 +您在请求标头中设置的每个内容都会对吞吐量产生巨大影响。苹果到苹果必须具有相同的请求标头。 +多个客户端的远程调用仅在纠正sthorogood识别的错误后才能工作。
Once I crossed those hurdles, I got great results from WCAT. It tests quickly, repeatably, and aggressively.
一旦我越过了这些障碍,我就从WCAT获得了很好的成绩。它可以快速,可重复和积极地进行测试。
Best of luck,
祝你好运,
Kevin
#4
0
I don't have an answer for you, but have you considered using other tools for your testing? The WCAT tools seems pretty limited and complicated to use.
我没有给您答案,但您是否考虑过使用其他工具进行测试? WCAT工具似乎非常有限且使用起来很复杂。
OpenSTA and JMeter are good open source tools for load/stress/performance testing.
OpenSTA和JMeter是用于负载/压力/性能测试的优秀开源工具。
#5
0
OpenSTA and JMeter looks very Apache like. I'm running IIS on Windows Server 2003.
OpenSTA和JMeter看起来非常像Apache。我在Windows Server 2003上运行IIS。
#7
0
for performance counter you can define -p .prf in the same command run for controller as: wcctl -c config.txt -d distribution.txt -s script.txt -a localhost - p performance.prf
对于性能计数器,您可以在控制器的同一命令运行中定义-p .prf:wcctl -c config.txt -d distribution.txt -s script.txt -a localhost - p performance.prf
#1
2
I'd look at updating to WCat 6.3 - available here for x86 and here for x64
我想看看更新到WCat 6.3 - 这里可用于x86,这里用于x64
They've changed the settings/scenario file strucutures, which is a little painful, but should suit your needs.
他们已经改变了设置/场景文件结构,这有点痛苦,但应该适合您的需求。
#2
2
I've just started evaluating wcat 6.3 and I'm afraid my experience has been a bit disapointing in terms of online support/community.
我刚刚开始评估wcat 6.3,我担心我的经验在线支持/社区方面有点令人失望。
There is also a major bug in the wcat.wsf script - see:
wcat.wsf脚本中还有一个主要错误 - 请参阅:
http://forums.iis.net/t/1153312.aspx
I'm now struggling with getting performance counter measurement working.
我现在正在努力让性能计数器测量工作。
#3
2
I've had good success with WCAT, though I'm struggling with simulating NTLM connections.
虽然我正在努力模拟NTLM连接,但我在WCAT方面取得了很大的成功。
I'm using 6.3, so my config files look very different from yours. Some gotchas I noted along the way:
+ Make sure you've got your firewall turned off, or holes punched through for WMI.
+ Each thing you set in the request header has a tremendous impact on throughput. Apples to apples must have the same request headers.
+ Remote calls with multiple clients work only after correcting the bug identified by sthorogood.
我使用6.3,所以我的配置文件看起来与你的不同。我在路上注意到了一些问题:+确保你已经关闭了防火墙,或者为WMI打了一针。 +您在请求标头中设置的每个内容都会对吞吐量产生巨大影响。苹果到苹果必须具有相同的请求标头。 +多个客户端的远程调用仅在纠正sthorogood识别的错误后才能工作。
Once I crossed those hurdles, I got great results from WCAT. It tests quickly, repeatably, and aggressively.
一旦我越过了这些障碍,我就从WCAT获得了很好的成绩。它可以快速,可重复和积极地进行测试。
Best of luck,
祝你好运,
Kevin
#4
0
I don't have an answer for you, but have you considered using other tools for your testing? The WCAT tools seems pretty limited and complicated to use.
我没有给您答案,但您是否考虑过使用其他工具进行测试? WCAT工具似乎非常有限且使用起来很复杂。
OpenSTA and JMeter are good open source tools for load/stress/performance testing.
OpenSTA和JMeter是用于负载/压力/性能测试的优秀开源工具。
#5
0
OpenSTA and JMeter looks very Apache like. I'm running IIS on Windows Server 2003.
OpenSTA和JMeter看起来非常像Apache。我在Windows Server 2003上运行IIS。
#6
#7
0
for performance counter you can define -p .prf in the same command run for controller as: wcctl -c config.txt -d distribution.txt -s script.txt -a localhost - p performance.prf
对于性能计数器,您可以在控制器的同一命令运行中定义-p .prf:wcctl -c config.txt -d distribution.txt -s script.txt -a localhost - p performance.prf