【问题标题】:WCAT request throttlingWCAT 请求限制
【发布时间】:2012-11-30 18:00:08
【问题描述】:

我在 Windows Server 2008 Std 上对 IIS 7 的 WCAT 6.4 进行初始测试/配置时遇到问题。我们对 WCAT 还很陌生,所以这可能是一个相当幼稚的问题。

我们正在测试一个预计不会有大量流量的网络应用程序,我正在尝试实现一个 WCAT 场景,在该场景中我们限制请求数量并逐渐增加吞吐量以对网络应用程序进行基准测试。给定的脚本每秒生成大约 500 个请求,我们正在尝试以小于该值的速度开始!

阅读 WCAT 文档,似乎在场景文件中包含“throttle”属性是实现此目的的正确方法,但每当我尝试这样做时,我都会收到“收到无效代码”消息。我正在使用 WCAT 附带的预制样本测试脚本的(非常微调的)版本,只要我不包含“节流”元素,它们似乎就可以正常工作。 (命令行和“home.ubr”脚本如下)

通过在命令行语法中包含“-throttlerps”参数,我已经能够对每秒请求进行一些限制,但在使场景文件选项正常工作方面仍然存在问题。命令行语法:

<directory>\wcat.wsf -terminate -run -clients localhost -t samples\scripts\home.ubr -f samples\scripts\settings.ubr -s localhost -throttlerps 1

和场景文件:

scenario
{
name    = "IIS Home Page";

warmup      = 10;
duration    = 20;
cooldown    = 10;
//throttle  = 10;  //HERE is what throws an error!

/////////////////////////////////////////////////////////////////
//
// All requests inherit the settings from the default request.
// Defaults are overridden if specified in the request itself.
//
/////////////////////////////////////////////////////////////////
default
{
    // send keep-alive header
    setheader
    {
        name    = "Connection";
        value   = "keep-alive";
    }

    // set the host header
    setheader
    {
        name    = "Host";
        value   = server();
    }

    // HTTP1.1 request
    version     = HTTP11;

    // keep the connection alive after the request
    close       = ka;
}

//
// This script is made for IIS7
//
transaction
{
    id = "Default Web Site Homepage";
    weight = 1;

    request
    {
        url         = "/";
        statuscode  = 200;
    }

    request
    {
        url         = "/welcome.png";
        statuscode  = 200;
    }

    //
    // specifically close the connection after both files are requested
    //
    close
    {
        method      = reset;
    }
}

 transaction
{
    id = "Default Web Site Homepage";
    weight = 1;

    request
    {
        url         = "/";
        statuscode  = 200;
    }

    request
    {
        url         = "/welcome.png";
        statuscode  = 200;
    }

    //
    // specifically close the connection after both files are requested
    //
    close
    {
        method      = reset;
    }
}
}

到目前为止,从谷歌搜索来看,这似乎不是一个常见问题......任何见解都将不胜感激。

【问题讨论】:

    标签: benchmarking throttling wcat


    【解决方案1】:

    好的,所以找到了答案:WCAT 的文档有一个错字,给定的文件属性被列为“throttle”,但正确的版本是使用“throttlerps”作为场景文件中的元素名称,而不仅仅是“throttle "(反映命令行语法)。也许其他人会偶然发现这个......

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-08-28
      • 2021-03-05
      • 2012-03-08
      • 2015-11-22
      • 2017-09-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多