Web 能力分析工具 (WCAT) - 无输出 XML

Web 能力分析工具 (WCAT) - 无输出 XML

我的 WCAT 6.3 运行良好,直到它应该生成 log.xml 文件为止。在 cmd 窗口中,我只看到最后的 Cooldown 更新,如下所示:

******************************************************************************
COOLDOWN 20/30 secs                             0 hours, 2 minutes, 20 seconds
******************************************************************************
         Connections =                        0 (                       0/sec)
         Disconnects =                        0 (                       0/sec)
        Socket Sends =                        0 (                       0/sec)
     Socket Receives =                        0 (                       0/sec)
     Full Handshakes =                        0 (                       0/sec)
Reconnect Handshakes =                        0 (                       0/sec)
          Bytes Sent =                        0 (                       0/sec)
      Bytes Received =                        0 (                       0/sec)
    Bytes Sent (SSL) =                        0 (                       0/sec)
Bytes Received (SSL) =                        0 (                       0/sec)
  Time To First Byte =                        0 (                     Minimum)
  Time To First Byte =                        0 (                     Maximum)
  Time To First Byte =                        0 (                     Average)
   Time To Last Byte =                        0 (                     Minimum)
   Time To Last Byte =                        0 (                     Maximum)
   Time To Last Byte =                        0 (                     Average)
        Transactions =                        0 (                       0/sec)
     Normal Requests =                        0 (                       0/sec)
     Secure Requests =                        0 (                       0/sec)
    Normal Responses =                        0 (                       0/sec)
    Secure Responses =                        0 (                       0/sec)
        Total Errors =                        0 (                       0/sec)
      Connect Errors =                        0 (                       0/sec)
         Send Errors =                        0 (                       0/sec)
      Receive Errors =                        0 (                       0/sec)
      Parsing Errors =                        0 (                       0/sec)
   Unexpected Status =                        0 (                       0/sec)

在我的 client.ubr 文件中,我有以下内容:

scenario
{
    name    = "default_doc";

    warmup      = 30;
    duration    = 90;
    cooldown    = 30;

    default
    {
        setheader
        {
            name    = "Connection";
            value   = "keep-alive";
        }
        setheader
        {
            name    = "Accept";
            value   = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, */*";
        }
        setheader
        {
            name    = "Accept-Language";
            value   = "en-us";
        }
        setheader
        {
            name    = "User-Agent";
            value   = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0";
        }
        setheader
        {
            name    = "Accept-Encoding";
            value   = "gzip, deflate";
        }
        setheader
        {
            name    = "Host";
            value   = server();
        }
        version     = HTTP11;
        statuscode  = 200;
        close       = ka;
    }

    transaction
    {
        id      = "default_doc";
        weight  = 100;

        request
        {
            url = "/home.aspx";
        }
    }
}

在我的 settings.ubr 文件中有以下内容:

settings
{
      server         = "test.company.com";
      clients        = 1;
      virtualclients = 2;

    counters
    {
        interval = 10;

        counter = "Processor(_Total)\\% Processor Time";
        counter = "Processor(_Total)\\% Privileged Time";
        counter = "Processor(_Total)\\% User Time";
        counter = "Processor(_Total)\\Interrupts/sec";

        counter = "Memory\\Available KBytes";

        counter = "Process(w3wp)\\Working Set";

        counter = "System\\Context Switches/sec";
        counter = "System\\System Calls/sec";

        counter = "Web Service(_Total)\\Bytes Received/sec" ; 
        counter = "Web Service(_Total)\\Bytes Sent/sec" ; 
        counter = "Web Service(_Total)\\Connection Attempts/sec" ; 
        counter = "Web Service(_Total)\\Get Requests/sec" ; 
    }

    registry
    {
        path = "System\\CurrentControlSet\\Control\\FileSystem";
        name = "NtfsDisableLastAccessUpdate";
        type = REG_DWORD;
    }

    registry
    {
        path = "System\\CurrentControlSet\\Services\\Tcpip\\Parameters";
        name = "SynAttackProtect";
        type = REG_DWORD;
    }
}

当我在控制器上运行以下命令时,测试运行良好: wcctl -f settings.ubr -t client.ubr 并在客户端上运行以下命令: wcclient

只是不确定为什么它不输出 log.xml 文件或给我任何消息/错误来说明为什么它不输出。直到我最终关闭它之前,CPU 的使用率仍然保持在大约 50%(我已经让它等待了 30 分钟才完成某项操作)。我这里遗漏了什么或您可能有什么建议?

编辑 是的,我也尝试过 -o 开关,但是没有成功...无论哪种方式结果都是一样的。

答案1

我确信这不是您要找的答案,但是没有生成日志文件,因为您在进程完成之前终止了进程。我们应该弄清楚为什么该进程无法自行完成。

通过在 wcat 客户端窗口中选择一些文本,我几乎重现了您的场景,这似乎导致 wcat 客户端和 wcat 控制器之间的通信变得混乱并且永远无法完成。

您能否检查是否没有人拖延 wcat 客户端或控制器(通过在控制台窗口中选择文本或其他方式)?

谢谢,马克

*出于测试目的,从未将其定义为 20 分钟

相关内容