【发布时间】:2017-03-09 08:05:53
【问题描述】:
这些天我正在测试我的 rabbitmq 3 节点集群, 我用java工具测试,
[root@server-42 bin ]$ ./runjava com.rabbitmq.perf.PerfTest -x1 -y1 -e testex -Hmqp://username:password@123.123.123.2/test' -t topic -k sample.info -s 1500 -i 20
id: test-154506-639, starting consumer #0
id: test-154506-639, starting consumer #0, channel #0
id: test-154506-639, starting producer #0
id: test-154506-639, starting producer #0, channel #0
id: test-154506-639, time: 20.000s, sent: 8913 msg/s, received: 8804 msg/s, min/avg/max latency: 6317/251907/727492 microseconds
id: test-154506-639, time: 40.004s, sent: 8993 msg/s, received: 8991 msg/s, min/avg/max latency: 157294/256691/387926 microseconds
id: test-154506-639, time: 60.011s, sent: 9029 msg/s, received: 9019 msg/s, min/avg/max latency: 146744/255631/384696 microseconds
id: test-154506-639, time: 80.017s, sent: 8946 msg/s, received: 8972 msg/s, min/avg/max latency: 164969/259147/723908 microseconds
id: test-154506-639, time: 100.019s, sent: 8971 msg/s, received: 8949 msg/s, min/avg/max latency: 164012/258115/353767 microseconds
我发现我的 rabbitmq 连接和通道状态保持在流状态。 但是为什么会这样?有什么办法可以提高性能?
我认为流状态保持发布者快速发送消息,以防服务器无法将消息排队。
但是我以前测试的发送率好像一点都不高,为什么还处于流状态?
有人可以帮忙吗?提前致谢。
【问题讨论】:
标签: rabbitmq