There are a couple of simple benchmarking tools in the org.activemq.benchmark package in the unit test area.

Right now they are quite simple!

If you want a more comprehensive performance testing mechanism try the JMeter Performance Tests

Running the benchmark

All of the following commands need to be run in the assembly directory. e.g. something like this...

cd activemq/assembly

 

Then in one shell run a server

maven server

 

In another shell run a benchmark consumer

maven bench:consumer

 

and then in another shell run a benchmark producer

maven bench:producer

 

You can customize the execution of these tools via additional command line properties etc.

Configuring the benchmarks

You can specify additional parameters as follows

maven bench:producer -Dparam=value -Dparam2=value2

 

The parameters allow the tests to be configured to test different kinds of scenario...

Parameter Description
url the transport protocol used to connect
topic true/false to indicate whether to test queue or topic semantics
durable true/false of whether to test durable or non-durable(reliable) communication
messageSize the number of characters in the text message to use in the test
subject the name of the destination (queue/topic) to use
Graphic Design By Hiram