rabbitmq 壓力測試

來源:本站原創 IT必備工具 超過464 views圍觀 0條評論

https://github.com/rabbitmq/rabbitmq-perf-test/releases

RabbitMQ Performance Testing Tool 介紹:
https://www.rabbitmq.com/java-tools.html

 

./runjava com.rabbitmq.perf.PerfTest -x 1 -y 2 -u "ACCOUNT_LOCK" -a –id "test 1"

Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED – inequivalent arg ‘durable’ for queue ‘ACCOUNT_LOCK’ in vhost ‘/’: received ‘false’ but current is ‘true’, class-id=50, method-id=10)

bin/runjava com.rabbitmq.perf.PerfTest -x 100  -u "ss"  –id "test 1" 

100生產者,且不自動確認

更多幫助:

> runjava com.rabbitmq.perf.PerfTest –help
usage: <program>
-?,–help                         show usage
-A,–multiAckEvery <arg>          multi ack every
-a,–autoack                      auto ack
-b,–heartbeat <arg>              heartbeat interval
-C,–pmessages <arg>              producer message count
-c,–confirm <arg>                max unconfirmed publishes
-D,–cmessages <arg>              consumer message count
-d,–id <arg>                     test ID
-e,–exchange <arg>               exchange name
-f,–flag <arg>                   message flag
-h,–uri <arg>                    connection URI
-i,–interval <arg>               sampling interval in seconds
-K,–randomRoutingKey             use random routing key per message
-k,–routingKey <arg>             routing key
-M,–framemax <arg>               frame max
-m,–ptxsize <arg>                producer tx size
-n,–ctxsize <arg>                consumer tx size
-p,–predeclared                  allow use of predeclared objects
-Q,–globalQos <arg>              channel prefetch count
-q,–qos <arg>                    consumer prefetch count
-R,–consumerRate <arg>           consumer rate limit
-r,–rate <arg>                   producer rate limit
-s,–size <arg>                   message size in bytes
-t,–type <arg>                   exchange type
-u,–queue <arg>                  queue name
-X,–producerChannelCount <arg>   channels per producer
-x,–producers <arg>              producer count
-Y,–consumerChannelCount <arg>   channels per consumer
-y,–consumers <arg>              consumer count
-z,–time <arg>                   run duration in seconds (unlimited by default)

示例:100個生產者;100個消費者;echange名稱為testex;轉發類型為fanout;queue名稱為testque;bingding為kk01;

runjava.bat com.rabbitmq.perf.PerfTest -x100 -y100 -e"testex" -t"fanout" -u"testque" -k"kk01"

文章出自:CCIE那點事 http://www.qdxgqk.live/ 版權所有。本站文章除注明出處外,皆為作者原創文章,可自由引用,但請注明來源。 禁止全文轉載。
本文標題:rabbitmq 壓力測試
本文鏈接:http://www.qdxgqk.live/?p=4015轉載請注明轉自CCIE那點事
如果喜歡:點此訂閱本站
  • 相關文章
  • 為您推薦
  • 各種觀點
?
?
萌宠夺宝游戏