【问题标题】:Specifying --host1 as localhost with port 8983 in autobench在 autobench 中使用端口 8983 将 --host1 指定为 localhost
【发布时间】:2010-03-15 11:48:16
【问题描述】:
I am using autobench for benchmarking in ubuntu 8.10

autobench --single_host --host1 localhost --uri1 /solr/admin --low_rate 20 --high_rate 200 --rate_step 20 --num_call 10 --num_conn 5000 --timeout 5 --file bench1。 tsv

这是我给的命令。默认端口为80,回复请求数如下图

**Errors: total 5000 client-timo 0 socket-timo 0 connrefused 5000 connreset 0
  Errors: fd-unavail 0 addrunavail 0 ftab-full 0 other 0
  Zero replies received, test invalid: rate 20
  httperf --timeout=5 --client=0/1 --server=localhost --port=80 --uri=/solr/admin  --rate=40 --send-buffer=4096 --recv-buffer=16384 --num-conns=5000 --num-calls=10
   Maximum connect burst length: 4
   Total: connections 5000 requests 0 replies 0 test-duration 124.976 s**

但是,我希望端口是 8983。在我在 autobench 教程中看到的所有示例中,--host1 是一个网站(例如 www.test.com)。谁能建议如何使用 localhost 将端口设置为 8983?提前谢谢。

【问题讨论】:

  • 问题通过添加 --port1 8983 得到解决

标签: localhost autobench


【解决方案1】:
man autobench

然后你会看到

--port1 端口 host1的服务器监听的端口号

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-15
    • 1970-01-01
    • 2023-04-06
    • 2017-11-12
    • 1970-01-01
    相关资源
    最近更新 更多