Last active
January 24, 2019 08:01
-
-
Save abn/6fcc72cb46fb7e936c3b to your computer and use it in GitHub Desktop.
Apache ActiveMQ performance test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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