Performance testing IBM MQ in a Docker environment

At the end of 2016 I spent some time performance testing IBM MQ, Pivotal RabbitMQ and Apache ActiveMQ in a Docker environment. This project goal was similar to my earlier tests on the native OS described in this blog post, except all the servers and clients in these tests are running as Docker containers.

As usual, I am publishing all the source code on GitHub: The code is all bash script based and invokes Java jar file under the covers. The benchmark can run on native OS or a virtual machine or cloud based server so long as it has Docker installed. Feel free to contribute or use in your own performance project. For the time being, I am still working on build/run automation with ActiveMQ and RabbitMQ parts of the test and will publish these in the future.

To run your own MQ on Docker performance tests, all you need to do is:

  1. Download the project code into your server where you plan to execute performance tests. I assume that you downloaded the code into $PROJECT_HOME directory.
  2. Edit file $PROJECT_HOME/source/ to set proper environment variables for your host (i.e. path to the data volume, Docker repo name, etc.).
  3. OPTIONAL: Edit file $PROJECT_HOME/source/mq/server/ to set MQ tuning variables to desired values (or use my settings as a starting point).
  4. Run $PROJECT_HOME/source/ to build generic Docker image with latest IBM MQ 9.x runtime (this only needs to be done once).
  5. Execute $PROJECT_HOME/source/mq/

Depending on the number of iterations, number of servers, clients, messages and time duration of the test it may take from several minutes to several hours. The results of the benchmark are automatically compiled across all of the test runs and aggregated in the file $PROJECT_HOME/source/mq/results.log.

Happy New Year 2017!


Categories: IBM MQ, Messaging, Technology

Tags: , ,

1 reply


  1. MQGem Monthly (January 2017) | MQGem Software

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: