Error in XMPP sampler --- SmackException$ConnectionException

36 views
Skip to first unread message

chboston chboston

unread,
Sep 24, 2023, 8:09:16 PM9/24/23
to jmeter-plugins
Hello Dmitri

I'm following blazemeter XMPP load testing blog and trying to connect to below free sample web server. 
Server url : wss://socketsbay.com/wss/v2/1/demo/

More details here on this website - 
https://socketsbay.com/test-websockets

I have Jmeter - 5.6.2 and added XMPP protocol support from here
smack-tcp-4.0.7
jbosh-0.8.0
jmeter-plugins-cmn-jmeter-0.4
smack-bosh-4.0.7
smack-extensions-4.0.7
smack-core-4.0.7
jmeter-plugins-xmpp-1.4.0
jmeter-plugins-manager-0.20

When I try connect to , I'm getting below 
SmackException. 
Any pointers on how to resolve this?

Jmeter_log.png

config.png

Screenshot 2023-09-24 at 8.04.17 PM.png



Thanks.
Sam

Dmitri T

unread,
Sep 25, 2023, 2:27:27 AM9/25/23
to jmeter-plugins
XMPP and WebSockets are absolutely different beasts, you cannot use XMPP Sampler for testing WebSockets as it uses completely different protocol under the hood.

Take a look at JMeter WebSocket Samplers project and JMeter WebSocket Samplers - A Practical Guide if you want to play with WebSocket performance testing.
Reply all
Reply to author
Forward
0 new messages