Reputation: 16861
I'm trying to stress test my WebSocket
server using Jmeter
's plugin (jmeter-websocket). The thing is that the plugin comes with no documentation how to work with it and thus I'm not sure if my expectations of it is supported or not.
I managed to run a sample test using the mentioned plugin and it was successfully connected to server. It also managed to communicate with server but once it was done receiving the first response it disconnected. I was hoping to configure this plugin in a way so it will maintain a persistent connection with WebSocket
server for several minutes, sending and receiving a couple of messages before it is disconnected.
By stress testing I would like to see how the number of concurrent connections affect my application's behavior. Is this plugin suitable for my needs? If it is then how should I work with it?
Upvotes: 13
Views: 15810
Reputation: 34536
As of November 2017, the best Websocket Sampler for Apache JMeter is this 3rd party plugin:
It can easily be installed through jmeter-plugins plugin manager.
Upvotes: 7
Reputation: 431
I had exactly the same problem. the plugin you have mentioned worked only for a HTTP-like request/response but I couldn't use it for a "long" connection.
Have a look at this http://github.com/maciejzaleski/JMeter
Features:
Upvotes: 10