使用WCAT对ASP.NET / IIS进行压力测试

前端之家收集整理的这篇文章主要介绍了使用WCAT对ASP.NET / IIS进行压力测试前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试使用IIS资源中包含的WCAT工具包设置压力/负载测试.

使用LogParser,我已经处理了一个带配置的UBR文件.它看起来像这样:

  1. [Configuration]
  2. NumClientMachines: 1 # number of distinct client machines to use
  3. NumClientThreads: 100 # number of threads per machine
  4. AsynchronousWait: TRUE # asynchronous wait for think and delay
  5. Duration: 5m # length of experiment (m = minutes,s = seconds)
  6. MaxRecvBuffer: 8192K # suggested maximum received buffer
  7. ThinkTime: 0s # maximum think-time before next request
  8. WarmupTime: 5s # time to warm up before taking statistics
  9. CooldownTime: 6s # time to cool down at the end of the experiment
  10.  
  11. [Performance]
  12.  
  13. [Script]
  14. SET RequestHeader = "Accept: */*\r\n"
  15. APP RequestHeader = "Accept-Language: en-us\r\n"
  16. APP RequestHeader = "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705)\r\n"
  17. APP RequestHeader = "Host: %HOST%\r\n"
  18.  
  19. NEW TRANSACTION
  20. classId = 1
  21. NEW REQUEST HTTP
  22. ResponseStatusCode = 200
  23. Weight = 45117
  24. verb = "GET"
  25. URL = "http://Url1.com"
  26.  
  27. NEW TRANSACTION
  28. classId = 3
  29. NEW REQUEST HTTP
  30. ResponseStatusCode = 200
  31. Weight = 13662
  32. verb = "GET"
  33. URL = "http://Url1.com/test.aspx"

它看起来不错吗?

我用这个命令执行控制器:wcctl -z StressTest.ubr -a localhost

客户端执行如下:wcclient localhost

当客户端执行时,我收到此错误:主客户端线程Connect Attempt 0失败.错误= 10061

这个世界上有没有人曾经使用过WCAT?

解决方法

我想看看更新到WCat 6.3 – 可用 here for x86here for x64

他们已经改变了设置/场景文件结构,这有点痛苦,但应该适合您的需求.

猜你在找的asp.Net相关文章