使用JMeter测试MQTT协议
1.下载xmeter-net/mqtt-jmeter/releases插件放到jmeter/exit目录下
https://github.com/xmeter-net/mqtt-jmeter/releases
2.添加线程组
3. 添加发布请求-选中线程组,点击右键,添加》Sample---MQTT Connect
4.自已搭建得windows得mosquitto 服务,选中mosquitto安装目录运行cmd ,订阅者mosquitto_sub -v -t test_topic mosquitto -c mosquitto.conf 启动服务
4.订阅者已看到发布得信息