emqx / mqtt-jmeter

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

MQTT Pub Sampler -Publish Failed (500) Error #24

Closed ranjithmj closed 6 years ago

ranjithmj commented 6 years ago

Hi,

I have used MQTT Pub Sampler without Thread Group -Scheduler option and all works fine.When we try to setup Scheduler option for specific duration like 300 Sec and Thread Group Loop Count-Forever,the publish get failed (500 Error)

Error Screenshot

image

Thread Group Scheduler Screenshot

image

jinfahua commented 6 years ago

Are there any error message in the jmeter.log (default the file is under $JMETER_HOME/bin/ folder)?

ranjithmj commented 6 years ago

Hi

When we change QoS Level from 0 to 1 its working.I dont see any error in log only 500 error in console.

On Tue, Jan 30, 2018 at 7:12 PM, jinfahua notifications@github.com wrote:

Are there any error message in the jmeter.log (default the file is under $JMETER_HOME/bin/ folder)?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/emqtt/mqtt-jmeter/issues/24#issuecomment-361596672, or mute the thread https://github.com/notifications/unsubscribe-auth/ALCM1CDvBk2LcOrh99ppkAnRuVvLSQs-ks5tPxxdgaJpZM4RyVvw .

-- Thanks & Regards

M.Ranjith

jinfahua commented 6 years ago

Is it a topic restriction?

ranjithmj commented 6 years ago

No i think the problem is with connection.

On Thu, Feb 1, 2018 at 1:51 PM, jinfahua notifications@github.com wrote:

Is it a topic restriction?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/emqtt/mqtt-jmeter/issues/24#issuecomment-362191765, or mute the thread https://github.com/notifications/unsubscribe-auth/ALCM1M3dg42Nr2aM0pmY31pUOJMfezfMks5tQXPugaJpZM4RyVvw .

-- Thanks & Regards

M.Ranjith

ranjithmj commented 6 years ago

its work without loop count forever.probably you can try out with sample.

jinfahua commented 6 years ago

Yes, I can reproduce the problem in my local env. Please add a timer into the pub sampler, refer to below pic. I think maybe server think the pub operation is too fast, and the connection is reset.

2018-02-06 1 41 45
ranjithmj commented 6 years ago

Thanks.Already I tried with timer with 1000.Let me try again.How long timer you set.

Thanks & Reg

On Feb 6, 2018 11:15 AM, "jinfahua" notifications@github.com wrote:

Yes, I can reproduce the problem in my local env. Please add a timer into the pub sampler, refer to below pic. I think maybe server think the pub operation is too fast, and the connection is reset.

[image: 2018-02-06 1 41 45] https://user-images.githubusercontent.com/8246540/35843538-bf4e12d4-0b43-11e8-9275-47594d20d0cb.png

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/emqtt/mqtt-jmeter/issues/24#issuecomment-363317452, or mute the thread https://github.com/notifications/unsubscribe-auth/ALCM1M5NuXYejAdNVoUPEVWDqMqj0Hrsks5tR-bggaJpZM4RyVvw .

jinfahua commented 6 years ago

I tried with 1s timer, it works in my test.

ranjithmj commented 6 years ago

Thank you.i think this is the only way to make it work.the same issue with HTTP Request also.

On Feb 7, 2018 6:39 AM, "jinfahua" notifications@github.com wrote:

I tried with 1s timer, it works in my test.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/emqtt/mqtt-jmeter/issues/24#issuecomment-363621080, or mute the thread https://github.com/notifications/unsubscribe-auth/ALCM1HAHJ70xb07ufcPqD5DhUKbmoRsnks5tSPfXgaJpZM4RyVvw .