Skip to content

Instantly share code, notes, and snippets.

@abn
Last active January 24, 2019 08:01
Show Gist options
  • Select an option

  • Save abn/6fcc72cb46fb7e936c3b to your computer and use it in GitHub Desktop.

Select an option

Save abn/6fcc72cb46fb7e936c3b to your computer and use it in GitHub Desktop.
Apache ActiveMQ performance test
#!/usr/bin/env bash
VERSION=5.11.1
DIR=activemq-${VERSION}
TARBALL=${DIR}.tar.gz
AMQIP=${AMQIP-localhost}
wget https://github.com/apache/activemq/archive/${TARBALL}
tar xf ${TARBALL}
cd activemq-${DIR}/activemq-tooling
mvn clean install
# get perftest sandbox
svn co http://svn.apache.org/repos/asf/activemq/sandbox/activemq-perftest
cd activemq-perftest
sed -i s/"5.7.0"/"${VERSION}"/ pom.xml
sed -i s/"5.8-SNAPSHOT"/"${VERSION}"/ pom.xml
# perform the test by spinning up a consumer and a producer
mvn activemq-perf:consumer -Dfactory.brokerURL=tcp://${AMQIP}:61616 > consumer.log 2>&1 &
mvn activemq-perf:producer -Dfactory.brokerURL=tcp://${AMQIP}:61616 > producer.log 2>&1 &
tail -f *.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment