Get an error when running the WebSocket plugin

765 views
Skip to first unread message

vladi...@hotmail.com

unread,
Nov 1, 2016, 2:31:41 PM11/1/16
to jmeter-plugins
I use JUnit 3.0
and /Users/vladimir/apache-jmeter-3.0/lib/ext/JMeterWebSocketSampler-1.0.2-SNAPSHOT.jar

[Problems]
 - Unexpected error: null
JMeter.plugins.functional.samplers.websocket.ServiceSocket.sendMessage(ServiceSocket.java:189)
JMeter.plugins.functional.samplers.websocket.WebSocketSampler.sample(WebSocketSampler.java:141)
org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:465)
org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:410)
org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:241)
java.lang.Thread.run(Thread.java:745)

Thanks in advance for any help.

pra...@mediaiqdigital.com

unread,
Mar 30, 2017, 7:23:09 AM3/30/17
to jmeter-plugins, vladi...@hotmail.com
I am facing the same issue with Jmeter 3.1 and i didnt found any workaround to see what wrong. Please any suggestion guys

peter.do...@gmail.com

unread,
Apr 11, 2017, 3:10:06 PM4/11/17
to jmeter-plugins, vladi...@hotmail.com, pra...@mediaiqdigital.com
Hi

If you are willing to use another websocket plugin, you might try this one: https://bitbucket.org/pjtr/jmeter-websocket-samplers.

Hope this helps,
Peter

Op donderdag 30 maart 2017 13:23:09 UTC+2 schreef pra...@mediaiqdigital.com:

Andrey Pokhilko

unread,
Apr 12, 2017, 3:17:36 AM4/12/17
to jmeter-...@googlegroups.com, peter.do...@gmail.com

Hey Peter,

Can you describe shortly what are the differences and benefits of your version of WebSocket plugin, compared to other known implementations? I'm asking because if your plugin is better, we should consider adding it to plugins repository to make it accessible by wide audience.

Andrey Pokhilko

--
You received this message because you are subscribed to the Google Groups "jmeter-plugins" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jmeter-plugin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vincent Daburon

unread,
Apr 12, 2017, 3:39:27 AM4/12/17
to jmeter-plugins, vladi...@hotmail.com, pra...@mediaiqdigital.com, peter.do...@gmail.com
Hi,
I read the documentation.
This plugin seems to be interesting with new features.


Regards.
Vincent D.

Chandresh Gupta

unread,
Apr 12, 2017, 12:46:15 PM4/12/17
to jmeter-plugins
This could be plus 1 , if it also provides option to push data-packet over tcp/ip..

Thanks,
Chandresh Gupta

peter.do...@gmail.com

unread,
Apr 13, 2017, 3:12:48 PM4/13/17
to jmeter-plugins, peter.do...@gmail.com
Hi Andrey,

Well, i can tell you why i started developing this plugin:
- i needed support for binary frames
- i needed to be able to support hundreds or thousands of concurrent websocket clients in one JMeter instance. All other plugins i tried, all used websocket-client libaries that created several (at least three, i've seen more!) threads per (websocket) client. Given the fact that the number of threads in one JVM is finite, this limits the number of concurrent websocket clients (JMeter threads) in one VM (i don't recall exactly, but i think i couldn't get past 300, which was far to little for my case)

Furthermore, i wanted to create something that is very easy to use. My motto is that simple problems should be solved by simple means, so a user that wants to load-test a simple websocket server, should be able to do so without much ado. So my design philosophy is to create a bunch of simple components (hence there are multiple samplers instead of one) that are useful by themselves, but that also can be combined (together with standard JMeter components like if- while- and loop-controls) to create more complex test scenario's.

One aspect of easy to use, is that is it very easy to install. Because it does not depend on external libraries, installation is pain free: just download the jar and put in /lib/ext and go start using it.

Last but not least, the plugin contains a "binary assertion" component, that JMeter is lacking.

If my plugin is better that others is for you to decide, but i'm definitely committed to make it the best! ;-)

Cheers,
Peter

Btw, the next release will contain "frame filters", which will make complex test scenario's even easier!

Op woensdag 12 april 2017 09:17:36 UTC+2 schreef Andrey Pokhilko:

Andrey Pokhilko

unread,
Apr 13, 2017, 4:16:22 PM4/13/17
to jmeter-...@googlegroups.com

Great collaboration happening, and we have new plugin available for audience through Plugins Manager: https://jmeter-plugins.org/?search=websocket-samplers

Andrey Pokhilko

peter.do...@gmail.com

unread,
Apr 15, 2017, 1:02:29 PM4/15/17
to jmeter-plugins
Hi Andrey,

It appears that the installation of this plugin is not working, which is caused by the fact that the download response has a content-disposition header with quotes around the filename:
   Content-Disposition: attachment; filename="JMeterWebSocketSamplers-0.7.3.jar"
This leads to the plugin manager trying to create a file with that name, including the quotes. This fails in Windows. On osx, the file is created, but not loaded by JMeter, so in both cases it does not work.

Of course, this is an easy fix in de PluginManager, but that would require users to upgrade before it's working. As the github downloads seem not to have this problem (even though both github and bitbucket use s3 for the downloads), i have created a release including a binary download on github. I can change the download url in various.json and create a pull request for this file, but i wonder if this will work if i don't increase the version number; maybe i need to create a new release in order to fix it for people that already have tried to download the plugin. If necessary, i'll be happy to do so, please let me know.

Regards,
Peter


Op donderdag 13 april 2017 22:16:22 UTC+2 schreef Andrey Pokhilko:

Andrey Pokhilko

unread,
Apr 15, 2017, 1:22:27 PM4/15/17
to jmeter-...@googlegroups.com

Hi,

This will work without releasing new plugin, just change various.json.

Andrey Pokhilko

poojar...@gmail.com

unread,
Oct 10, 2018, 8:53:53 AM10/10/18
to jmeter-plugins
Hi, Required help to resolve socket.io connection error on Jmeter.
Find the attached error and set up websocket sampler image.
socket_io error.png
socket_io_sampler.png
Reply all
Reply to author
Forward
0 new messages