Closed arbazalam2z closed 7 years ago
Hi @arbazalam2z , Sorry this does not support requirement. The same issue is there with JMS sampler as I know.
But you can use the following options below. You will have to create 20 thread groups. Each thread will send 1 message. The threads will be consecutively executed once you have done the change to the "TestPlan"
[1] - http://stackoverflow.com/questions/14321662/running-multiple-thread-groups-sequentially-in-jmeter [2] - http://jmeter.apache.org/usermanual/component_reference.html#Test_Plan
Regards, Hemika
Actually i have to deal with 50K message per minute, in that case threading concept of JMETER will not work. What if i can introduce diconnect() function in the code?
Is this only for publisher side? or are looking for subscriber side as well ?
Thanks for quick reply.. :+1:
Yes it is for publisher side only.
Hi @arbazalam2z ,
Try out the attached diff. Only tested it a bit. You will have to changed the extension to 'diff' from 'txt'.
Please close this issue if the above patch resolves the issue. Please note that I wont be merging the patch at the moment.
@arbazalam2z was it that the patch could not be properly patched ?
The implementation was that for each sample a client gets created , published and then destroyed.
is your requirement to use the same client to connect, publish and disconnect ?
@hemikak As per my requirement it is not necessary that client should be same, it may be different either. I have patched it properly. If possible please upload complete zip or email me at: handsomearbaz@gmail.com
Thanks, your help is really appreciated... :+1:
Hi Hemikak , Thanks for the MQTT pluggin for jmeter ,Can you provide me sample Jmeter script ,So that i can get some idea on how to use this pluggin , Appreciate quick response
@anandsb123 Sorry for the delay, I will get back to you on it soon.
Hi @anandsb123, Rename the extensions to jmx.
Hi,
I am getting following error. Can you help me?
jmeter.threads.JMeterThread: Error while processing sampler 'MQTT Publisher' : java.lang.NullPointerException
at org.eclipse.paho.client.mqttv3.MqttConnectOptions.validateURI(MqttConnectOptions.java:457)
at org.eclipse.paho.client.mqttv3.MqttAsyncClient.
@arbazalam2z Hi,I have a similar requirement as yours so want to know if your code worked. Also if it has worked for you can you please provide me the final code that worked for you on kaushalkrjha@gmail.com
Hello All, Can you please help me where to show my subscription channel responses?
Hi Hemikak,
I have a scenario in which i have suppose to send 20 messages and after each message sent connection should be disconnect and again connect to send next message. Does this plugin serve my purpose. I also would like to know how this code works.
Thanks Arbaz