【问题标题】:Siege to capture only final statistics围攻仅捕获最终统计数据
【发布时间】:2019-11-15 15:37:35
【问题描述】:

我需要捕获 siege 基准工具的最终统计数据。 我试过的是

siege -c2 -t10s http://127.0.0.1:3000/ > siege.log 2>&1

但是 siege.log 有很多 HTTP/1.1 200 0.00 secs: 16 bytes ==> GET / aswel。

我想要的只是下面的最终统计数据

Lifting the server siege...
Transactions:                496 hits
Availability:             100.00 %
Elapsed time:               0.97 secs
Data transferred:           0.01 MB
Response time:              0.00 secs
Transaction rate:         511.34 trans/sec
Throughput:             0.01 MB/sec
Concurrency:                1.82
Successful transactions:         496
Failed transactions:               0
Longest transaction:            0.04
Shortest transaction:           0.00

请提出建议。提前致谢

【问题讨论】:

  • 不确定,为什么对这个问题投了反对票?
  • 可能是因为 (a) 它列出了一个不属于问题的工具,(ii) 它显示用户没有努力整合数据,& (3) 不是编程问题/它是一个工具问题

标签: linux performance command loadrunner siege


【解决方案1】:

我很难找到解决方案。

默认情况下,$HOME/.siege/siege.confverbose 设置为 true。

选项 1: 可以在 $HOME/.siege/siege.conf 处将其覆盖为 false

选项 2: 如果您不想更改全局配置,可以创建自定义攻城配置并运行如下

siege -c2 -t10s http://127.0.0.1:3000/ --rc=siege.conf

【讨论】:

    猜你喜欢
    • 2022-08-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-05
    • 1970-01-01
    • 2012-02-28
    • 1970-01-01
    • 2010-10-08
    相关资源
    最近更新 更多