打赏

Jmter进行Rabbitmq测试

Jmter进行Rabbitmq测试

1.下载amqp-client.jar包,放在Jmeter的lib目录
https://mvnrepository.com/artifact/com.rabbitmq/amqp-client
https://jar-download.com/artifacts/com.rabbitmq/amqp-client

2.下载JMeterAMQP.jar,并放到/lib/ext目录
https://github.com/jatinaneja/jmeter_amqp

说明:

amqp-client-4.12.0.jar 放到lib/目录
JMeterAMQP.jar 放到lib/ext 目录

3.启动

常见错误处理

1.jar包冲突

Caused by: java.lang.NoClassDefFoundError: com/rabbitmq/client/QueueingConsumer

解决办法:替换amqp-client的版本。具体操作:https://blog.csdn.net/jiaobuchong/article/details/79302187
2.找不到主机IP

ERROR o.a.j.u.JMeterUtils: Unable to get local host IP address

解决办法:

1. hostname查看本机名

[root@master ~]# hostname
master


2. 打开host文件

[root@master ~]# vi /etc/hosts


3. 配置上本机名的IP

127.0.0.1   master

参考链接:https://blog.csdn.net/qq_33808440/article/details/108259626

相关链接

https://cloud.tencent.com/developer/article/1578365
https://www.cnblogs.com/testfan2019/p/12400581.html
https://blog.csdn.net/weixin_40816738/article/details/106739610

posted @ 2021-04-09 17:19  苍山落暮  阅读(448)  评论(0编辑  收藏  举报