Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
ActiveMQ performance test using maven-activemq-perf-plugin
Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/main/resources
LICENSE
NOTICE
README
perf-test.sh
pom.xml

README

ActiveMQ Performance Test

This project shows using the maven-activemq-perf-plugin to performance test ActiveMQ.
This assumes you have Maven 2.2.1 or later installed.

Note: tweak memory settings based on test system's capacity

To start the Broker from this project's directory

> export MAVEN_OPTS="-Xmx3g -Xms2g"
> mvn activemq:run -DconfigUri=xbean:file:src/main/resources/conf/activemq-specjms.xml -Dorg.apache.activemq.UseDedicatedTaskRunner=false


To start the consumer(s)

> export MAVEN_OPTS="-Xmx2g -Xms1g"
> mvn activemq-perf:consumer -Dfactory.brokerURL=tcp://<host>:61616 -DsysTest.numClients=<num client threads> -Dconsumer.durable=true


To start the producers(s)

> export MAVEN_OPTS="-Xmx2g -Xms1g"
> mvn activemq-perf:producer -Dfactory.brokerURL=tcp://<host>:61616 -DsysTest.numClients=<num client threads> -Dproducer.messageSize=<msg size in bytes> -Dfactory.useAsyncSend=false -Dproducer.deliveryMode=<persistent|nonpersistent>
Something went wrong with that request. Please try again.