emqx / mqtt-jmeter

MQTT JMeter Plugin
https://www.emqx.com/en
Apache License 2.0
445 stars 194 forks source link

Observing Error Codes for MQTT Sub Sampler, SUBACK contains only Error Codes #99

Open ManikandarajThirumeni opened 3 years ago

ManikandarajThirumeni commented 3 years ago

Hi All,

For the very first attempt of MQTT Sub Sampler, Response code is shown as 200, but the received message is shown as 0. And all the remaining attempts of MQTT Sub Sampler are failing with Error Code 501.

Note : MQTT Pub Sampler is working fine for the same topic.

Don't use GUI mode for load testing !, only for Test creation and Test debugging. For load testing, use CLI Mode (was NON GUI): jmeter -n -t [jmx file] -l [results file] -e -o [Path to web report folder] & increase Java Heap to meet your test requirements: Modify current env variable HEAP="-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m" in the jmeter batch file Check : https://jmeter.apache.org/usermanual/best-practices.html

Feb 18, 2021 6:47:36 PM net.xmeter.samplers.mqtt.hivemq.HiveMQTTClient connect INFO: Connect client: AA-BB-CC-DD-EE-EF Feb 18, 2021 6:47:37 PM net.xmeter.samplers.mqtt.hivemq.HiveMQTTClient connect INFO: Connected client: AA-BB-CC-DD-EE-EF Feb 18, 2021 6:47:37 PM net.xmeter.samplers.SubSampler lambda$listenToTopics$3

MQTT-Sub-1 MQTT-Sub-2

INFO: subscribe failed com.hivemq.client.mqtt.mqtt3.exceptions.Mqtt3SubAckException: SUBACK contains only Error Codes

Have attached the Screenshots for reference. Please let me know your inputs.

Thanks, Manikandaraj

QigangZhong commented 2 years ago

Same problem, any solutions?