标签:rabbit max numbers 生产 global zip fanout hub man
RabbitMQ Performance Testing Tool 介绍:
https://www.rabbitmq.com/java-tools.html
RabbitMQ Performance Testing Tool 下载:
https://github.com/rabbitmq/rabbitmq-perf-test/releases
解压文件(放到 RabbitMQ 安装目录下)
rabbitmq-perf-test-1.1.0.zip
测试(命令行执行):
-
> cd D:\Program Files\RabbitMQ Server\rabbitmq-perf-test-1.1.0\bin
-
> runjava.bat com.rabbitmq.perf.PerfTest -a
更多帮助:
-
> runjava com.rabbitmq.perf.PerfTest --help
-
-
-
-A,--multiAckEvery <arg> multi ack every
-
-
-b,--heartbeat <arg> heartbeat interval
-
-C,--pmessages <arg> producer message count
-
-c,--confirm <arg> max unconfirmed publishes
-
-D,--cmessages <arg> consumer message count
-
-
-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"
结合 rabbitmq-management界面工具查看,和了解消息收发情况(参考:RabbitMQ
在windows中安装)
---------------------
本文来自 Huang-ZC 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/kk185800961/article/details/55252797?utm_source=copy
RabbitMQ Performance Testing Tool 性能测试工具
标签:rabbit max numbers 生产 global zip fanout hub man
原文地址:https://www.cnblogs.com/saryli/p/9729562.html