PROTOCOLS · JMS
Load test your message queues with the replies your services send back
Orders, payments and back-office jobs still travel over JMS between services and brokers. Gatling sends real messages to your queues at production rates, matches every reply to its request and times the round trip, so you find the slow consumer before your customers do.


Measure the round trip, not the send
Putting a message on a queue takes milliseconds. The reply, or the processing behind it, can take seconds once consumers fall behind. Gatling matches each reply to its request by message ID, correlation ID or your own rule, and times the round trip under load.
From message sent to reply matched, in one Gatling test
Each request-reply and send appears side by side in the same Gatling report.
How Gatling does it
Every reply matched to its request
Match replies by message ID, by correlation ID, or with your own matcher. A reply that misses the timeout fails the request.
Replies that did the real work
Check reply bodies with JSON path, XPath or JMESPath, check JMS properties, or write your own check on the reply message.
When the message lands elsewhere
Use a tracker destination to time when a message reaches a queue other than the reply queue, for flows that end downstream.
Where teams load test JMS
JMS carries the flows that keep the business running. These are the ones to test before a migration, a release or a peak.
Back-office round trips
Order and payment messages processed by services behind a broker. Measure the reply time at peak order rate.
Old broker against new
A new broker, version or cloud queue, before the cutover. Run the same test on both and compare the round trips.
Legacy integrations
IBM MQ queues and enterprise service buses that connect core systems. Measure reply times as message volume grows.
Amazon SQS through JMS
Reach SQS through AWS’s JMS adapter, with explicit reply queues and FIFO properties. Measure throughput and round trips.
Urgent messages under load
Send messages with priorities and time-to-live, and see whether urgent work still gets through when queues fill up.
A different architecture?
Tell us about the message flows that matter to your business. We’ll help you design the right Gatling test.
JMS testing built into Gatling
Connection factories, request-reply, matching, message types and checks ship with Gatling. No custom client to maintain.
Your broker, your client
Connect through JNDI or your broker’s own connection factory: ActiveMQ, IBM MQ or another Jakarta JMS provider.
Private Locations
Run next to brokers that aren’t reachable from the internet, with no inbound access to open.
Performance gates with assertions
Set assertions on reply times and failed requests per queue. If one fails, the Gatling test fails and so does the build.
Live Session
See Gatling in action
Build, run, and interpret your first load test. A practical session: by the end, you'll know exactly what Enterprise gives you out of the box.
.png)
Your first Gatling test for JMS
The reference docs and a hands-on article from our engineers. Pick the one that fits your stack.
Load testing AWS SQS with Gatling
Reach SQS through AWS’s JMS adapter and Gatling’s native JMS support, step by step.
Read the JMS reference
Connection factories, send and request-reply, message types, matching and checks, in Java, Kotlin, Scala, JavaScript and TypeScript.
Legacy javax.jms clients
Run javax.jms clients with Gatling 3.14 and later through the jakarta-jms-adapter.
One platform for every protocol you run
Same Gatling SDK, same reports, same infrastructure.
gRPC
Unary and streaming calls built from your .proto files.
JMS
Queues, request-reply and brokers.
MQTT
IoT devices and brokers at fleet scale.
Kafka
Event-driven flows, end to end.
WebSocket
Real-time connections and messages.
Also supported: HTTP, GraphQL, JDBC and Server-Sent Events. See the full tech stack›
JMS load testing, answered
What teams ask before they run their first JMS test with Gatling.
Do I need a plugin to test JMS?
Not with Java, Kotlin or Scala: JMS support ships with Gatling. JavaScript and TypeScript use the @gatling.io/jms package. In every case you add your broker’s JMS client to the project.
Which brokers can I test?
Any Jakarta JMS provider, such as ActiveMQ or IBM MQ, through JNDI or the broker’s own connection factory. Legacy javax.jms clients work through an adapter.
How does Gatling match replies to requests?
By message ID by default, by correlation ID, or with your own matcher. Replies go to the reply queue you set, or to a dynamic queue when you set none.
Can I test Amazon SQS?
Yes, through AWS’s JMS adapter and Gatling’s JMS support. SQS has no temporary queues, so request-reply needs an explicit reply queue.
Can one Gatling test mix JMS and HTTP?
Yes. One scenario can call your API and then send or wait on JMS messages, with every step in the same report.
Which Gatling versions and languages are supported?
JMS is built into Gatling for Java, Kotlin and Scala, and available for JavaScript and TypeScript since SDK 3.16.101. Gatling 3.14 and later target jakarta.jms.
Find the slow consumer before your customers do
Bring one message flow that matters to your business. We’ll write the test with you and run it against your broker in a Gatling Enterprise trial.
Find out where your message flows breaks
Bring one message flow that matters to your business. We'll show you how to test it at production scale with Gatling Enterprise.
Need technical references and tutorials?
Running JMS tests locally first?

