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.

01 · WHAT GATLING MEASURES

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.

ONE REQUEST, UNDER LOAD

From message sent to reply matched, in one Gatling test

Sendtext, bytes, map or object
Broker acceptsmessage on the queue
Consumer processesmay fall behind
Reply sentto the reply queue
Reply matchedby message or correlation ID
Message on the queueWhere most tests stop
Request sent to reply matchedWhat Gatling measures

Each request-reply and send appears side by side in the same Gatling report.

How Gatling does it

REQUEST-REPLY

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.

CHECKS

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.

TRACKING

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.

02 · USE CASES

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.

ORDERS AND PAYMENTS

Back-office round trips

Order and payment messages processed by services behind a broker. Measure the reply time at peak order rate.

BROKER MIGRATIONS

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.

MAINFRAME AND ESB

Legacy integrations

IBM MQ queues and enterprise service buses that connect core systems. Measure reply times as message volume grows.

CLOUD QUEUES

Amazon SQS through JMS

Reach SQS through AWS’s JMS adapter, with explicit reply queues and FIFO properties. Measure throughput and round trips.

PRIORITY TRAFFIC

Urgent messages under load

Send messages with priorities and time-to-live, and see whether urgent work still gets through when queues fill up.

YOUR FLOW

A different architecture?

Tell us about the message flows that matter to your business. We’ll help you design the right Gatling test.

03 · WHY GATLING

JMS testing built into Gatling

Connection factories, request-reply, matching, message types and checks ship with Gatling. No custom client to maintain.

4
message types: text, bytes, map and object
3
ways to match replies: message ID, correlation ID or custom
0
extra Gatling dependencies for Java, Kotlin and Scala
5
languages: Java, Kotlin, Scala, JavaScript, TypeScript
ANY JMS BROKER

Your broker, your client

Connect through JNDI or your broker’s own connection factory: ActiveMQ, IBM MQ or another Jakarta JMS provider.

INFRASTRUCTURE

Private Locations

Run next to brokers that aren’t reachable from the internet, with no inbound access to open.

CI/CD

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.

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.

Loading next session...

30 minutes

Live + Q&A

04 · GET STARTED

Your first Gatling test for JMS

The reference docs and a hands-on article from our engineers. Pick the one that fits your stack.

Community Edition: JMS is built into the Java, Kotlin and Scala SDKs, with no protocol limit.Gatling Enterprise: distributed load generators, run history and shared reports.
05 · OTHER PROTOCOLS

One platform for every protocol you run

Same Gatling SDK, same reports, same infrastructure.

Also supported: HTTP, GraphQL, JDBC and Server-Sent Events. See the full tech stack›

FAQ

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.

JMS LOAD TESTING WITH GATLING ENTERPRISE

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?