Spring Websocket STOMP load testing

5.4k Views Asked by At

I am developing a messaging application using Spring REST, Websocket/STOMP and RabbitMQ. We use are using gatling for load/stress testing the REST end points of the application. However, we would like to know how many messages can be processed with Spring Websocket/STOMP end points. While Gatling has web socket, RabbitMQ and ActiveMQ extensions, I could not find one specifically for testing the STOMP end points.

Can you suggest a tool/framework that can be used to load/stress test Spring Websocket/STOMP end points?

3

There are 3 best solutions below

1
On BEST ANSWER

I solved this by using native STOMP text messages as payload. For example for the connection request, I sent

CONNECT

accept-version:1.0,1.1,2.0

host:stomp.github.org

^@

from my test case to the end point.

1
On

I believe both Gatling and JMeter have WebSocket protocol support, see the following material for details:

0
On

jmeter sockjs stomp sample

I have found a jmeter plugin in the github.Package the source code to the jar, put the jar file into \JMeter\lib\ext folder ,then you can connect the stomp websocket server.