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

标签 asp.net iis stress-testing wcat

我正在尝试使用IIS资源中包含的WCAT工具包来设置压力/负载测试。

使用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" 

看起来还好吗?

我使用以下命令执行 Controller :wcctl -z StressTest.ubr -a localhost
客户端是这样执行的:wcclient localhost
执行客户端时,出现此错误:main client thread Connect Attempt 0 Failed. Error = 10061
这个世界上有人使用过WCAT吗?

最佳答案

我将看一下更新到WCat 6.3-可用的here for x86here for x64

他们更改了设置/场景文件的结构,这虽然有些麻烦,但应该可以满足您的需求。

关于asp.net - 使用WCAT对ASP.NET/IIS进行压力测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/114787/

相关文章:

c# - 如何确定分布式架构?

c# - 如何将字符串(红色、蓝色、黑色)转换为字符串数组?

c# - 带点的 URL 会导致 404 错误

c# - 无法添加类型为 'filter' 且唯一键属性 'name' 设置为 'ASP.Net_4.0_64bit' 的重复集合条目

asp.net - 如何测试模拟多个并发请求的webservice

git - 使用 git 进行压力测试

c# - 如何在数据表日期时间列中设置日期时间

c# - 有没有办法检查页面是否已从外部来源登陆

iis - Amazon EC2 IIS-8 用户的权限写入访问

c# - 我们能否在 C# 应用程序中创建 300,000 个线程并在 PC 上运行它?