【问题标题】:JMeter Dashboard - CPU Usage added to jtl file does not show percentage cpuJMeter Dashboard - 添加到 jtl 文件的 CPU 使用率不显示 cpu 百分比
【发布时间】:2018-03-08 16:19:41
【问题描述】:

通过 JMeter 生成的仪表板 - 当 PerfMon Metrics 收集器将 CPU 信息写入 JTL 文件时,它会在 Statistics 部分显示响应时间 (ms)。但是,我希望将 CPU 使用率视为仪表板统计部分中显示的百分比(就像您可以在 PerfMon 的图表显示中看到的那样)。如何使用 JMeter Dashboard 做到这一点?谢谢。

【问题讨论】:

  • 对答案有任何反馈吗?如果可以,它应该被接受和投票,谢谢
  • 您好,接受赞成票是什么意思?我为它创建了一个单独的票,因为它是对现有仪表板的增强。谢谢。

标签: jmeter perfmon


【解决方案1】:

你不能从 JMeter 4.0 开始。

这将是提出并可能贡献或赞助的增强请求。

要打开此类增强功能,请参阅:

编辑:

你打开了:

【讨论】:

    【解决方案2】:

    我遇到了同样的问题。默认结果 JTL 文件似乎不包含 CPU 信息。我在 jmx 文件中配置 PerfMon 文件名,它确实有效。我希望这对你也有帮助。

    <hashTree>
      <kg.apc.jmeter.perfmon.PerfMonCollector guiclass="kg.apc.jmeter.vizualizers.PerfMonGui" testclass="kg.apc.jmeter.perfmon.PerfMonCollector" testname="jp@gc - PerfMon Metrics Collector" enabled="true">
        <boolProp name="ResultCollector.error_logging">false</boolProp>
        <objProp>
          ......
        </objProp>
    
        #HERE config the perfmon infomation
        <stringProp name="filename">cpu.perfmon.base.jtl</stringProp>
        ......
      </kg.apc.jmeter.perfmon.PerfMonCollector>
    <hashTree/>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-10-10
      • 2020-11-27
      • 2012-10-19
      • 2023-03-19
      • 2019-05-01
      • 1970-01-01
      • 2021-05-21
      相关资源
      最近更新 更多