-
Notifications
You must be signed in to change notification settings - Fork 2
使用rabbitmq-c client对rabbitmq的性能进行测试
liuhaobupt/rabbitmq-benchmark
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
本项目用于对rabbitmq做性能测试。使用rabbitmq-c client。 类似于如下项目: https://github.com/jeffkit/rabbitmq-benchmark 依赖包: librabbitmq.a 直接make对项目进行编译 使用方法: 0.使用管理界面建立相关的queue 1.入队测试命令 ./producer 接受如下6个参数: 0)rabbitmq-server所在主机 1)rabbitmq-server监听端口 2)队列名 3)每条消息大小(单位Byte) 4)消息是否持久化 5)发送消息总条数 使用示例:./producer localhost 5672 queuename 1024 true 100000 2.出队测试命令: ./consumer 接受如下5个参数 0)rabbitmq-server所在主机 1)rabbitmq-server监听端口 2)队列名 3)QOS,表示每个消费者同一时间能接受到的消息数,0表示无限制 4)noAck,true表示不需要手动发送回执 使用示例:./consumer localhost 5672 queuename 0 true 注:默认client登录帐号为guest/guest,要求此帐号对queue所在的vhost有相关权限
About
使用rabbitmq-c client对rabbitmq的性能进行测试
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published