2012-11-30 228 views
2

我有我的初步测试/ WCAT 6.4对IIS 7的Windows Server 2008标准上配置的问题。我们对WCAT来说很新,所以这可能是一个相当天真的问题。WCAT请求限制

我们正在测试的预期不具有流量大批量一个Web应用程序,我想实现一个WCAT场景,我们限制请求的数量,逐渐增加吞吐量基准的Web应用程序。给出脚本生成约500个请求/秒,我们正在试图启动小于!

阅读WCAT文档时,似乎在场景文件中包含“throttle”属性是做到这一点的正确方法,但每当我尝试这样做时,我都会收到“Invalid code received”msg。我使用的是配备了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; 
    } 
} 
} 

因此,从谷歌上搜索远看来这不是一个常见的问题...任何有识之士将不胜感激。

回答

3

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