zoukankan      html  css  js  c++  java
  • RabbitMQ Performance Testing Tool 性能测试工具

    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

    测试(命令行执行):

    1.  
      > cd D:Program FilesRabbitMQ Serverrabbitmq-perf-test-1.1.0bin
    2.  
      > runjava.bat com.rabbitmq.perf.PerfTest -a


    更多帮助:

    1.  
      > runjava com.rabbitmq.perf.PerfTest --help
    2.  
      usage: <program>
    3.  
      -?,--help show usage
    4.  
      -A,--multiAckEvery <arg> multi ack every
    5.  
      -a,--autoack auto ack
    6.  
      -b,--heartbeat <arg> heartbeat interval
    7.  
      -C,--pmessages <arg> producer message count
    8.  
      -c,--confirm <arg> max unconfirmed publishes
    9.  
      -D,--cmessages <arg> consumer message count
    10.  
      -d,--id <arg> test ID
    11.  
      -e,--exchange <arg> exchange name
    12.  
      -f,--flag <arg> message flag
    13.  
      -h,--uri <arg> connection URI
    14.  
      -i,--interval <arg> sampling interval in seconds
    15.  
      -K,--randomRoutingKey use random routing key per message
    16.  
      -k,--routingKey <arg> routing key
    17.  
      -M,--framemax <arg> frame max
    18.  
      -m,--ptxsize <arg> producer tx size
    19.  
      -n,--ctxsize <arg> consumer tx size
    20.  
      -p,--predeclared allow use of predeclared objects
    21.  
      -Q,--globalQos <arg> channel prefetch count
    22.  
      -q,--qos <arg> consumer prefetch count
    23.  
      -R,--consumerRate <arg> consumer rate limit
    24.  
      -r,--rate <arg> producer rate limit
    25.  
      -s,--size <arg> message size in bytes
    26.  
      -t,--type <arg> exchange type
    27.  
      -u,--queue <arg> queue name
    28.  
      -X,--producerChannelCount <arg> channels per producer
    29.  
      -x,--producers <arg> producer count
    30.  
      -Y,--consumerChannelCount <arg> channels per consumer
    31.  
      -y,--consumers <arg> consumer count
    32.  
      -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 

  • 相关阅读:
    [LeetCode#68] Text Justification
    [LeetCode#227] Basic Calculator II
    [LeetCode#87] Scramble String
    [LeetCode#280] Wiggle Sort
    [LeetCode#272] Closest Binary Search Tree Value II
    [LeetCode#254] Factor Combinations
    [LeetCode#174] Dungeon Game
    python报错集合
    在线画图工具
    xml模块(了解)
  • 原文地址:https://www.cnblogs.com/saryli/p/9713156.html
Copyright © 2011-2022 走看看