【问题标题】:Can you configure the sample length for mod_status requests per second?您可以配置每秒 mod_status 请求的样本长度吗?
【发布时间】:2010-05-04 19:16:35
【问题描述】:

Apache 模块 mod_status 允许您查看当前正在服务的每秒平均请求数。然而,它在相当长的一段时间内测量这个平均值(我不知道确切的时间)。是否可以将此长度修改为更短的长度,以便更准确地了解服务器上的当前负载?

【问题讨论】:

    标签: apache


    【解决方案1】:

    您可以自己计算平均值。

    编写脚本(如python)获取参数?refresh=1&auto的server-status,然后累加BusyWorkers,即当前请求数。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-19
      • 2019-10-23
      • 2012-07-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多