diff --git a/examples/perf/jmeter/1.jms_p2p_test.jmx b/examples/perf/jmeter/1.jms_p2p_test.jmx new file mode 100644 index 0000000000..8cdf6b7b95 --- /dev/null +++ b/examples/perf/jmeter/1.jms_p2p_test.jmx @@ -0,0 +1,190 @@ + + + + + + + false + false + + + + + + + + continue + + false + 2 + + 10 + 1 + 1444135913000 + 1444135913000 + false + + + + + + ConnectionFactory + dynamicQueues/exampleQueue + + true + false + false + 2000 + "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." + + + + + + java.naming.factory.initial + org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory + = + + + connectionFactory.ConnectionFactory + tcp://localhost:61616 + = + + + + + + + + + + + continue + + false + 2 + + 100 + 1 + 1444138916000 + 1444138916000 + false + + + + + + ConnectionFactory + dynamicQueues/exampleQueue + dynamicQueues/exampleQueue + false + false + true + 2000 + "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." + + + + + + java.naming.factory.initial + org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory + = + + + connectionFactory.ConnectionFactory + tcp://localhost:61616 + = + + + + + + + 1000 + true + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + false + false + false + false + false + 0 + true + true + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + false + false + false + false + false + 0 + true + true + + + + + + + + diff --git a/examples/perf/jmeter/2.pub_sub_test.jmx b/examples/perf/jmeter/2.pub_sub_test.jmx new file mode 100644 index 0000000000..eb650e186a --- /dev/null +++ b/examples/perf/jmeter/2.pub_sub_test.jmx @@ -0,0 +1,134 @@ + + + + + + + + false + false + + + + + + + + continue + + false + -1 + + 5 + 0 + 1443785931000 + 1443785931000 + false + + + + + + false + org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory + tcp://localhost:61616 + ConnectionFactory + dynamicTopics/exampleTopic + + + false + 10 + true + jms_subscriber_on_message + 2000 + , + + + + + continue + + false + -1 + + 1 + 1 + 1443786096000 + 1443786096000 + false + + + + + + false + org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory + tcp://localhost:61616 + ConnectionFactory + dynamicTopics/exampleTopic + 10000 + 0 + + + Lorem ipsum dolor sit amet, consectetur adipisicing elit Lorem ipsum dolor sit amet, consectetur adipisicing elit Lorem ipsum dolor sit amet, consectetur adipisicing elit Lorem ipsum dolor sit amet, consectetur adipisicing elit Lorem ipsum dolor sit amet, consectetur adipisicing elit Lorem ipsum dolor sit amet, consectetur adipisicing elit Lorem ipsum dolor sit amet, consectetur adipisicing elit Lorem ipsum dolor sit amet, consectetur adipisicing elit Lorem ipsum dolor sit amet, consectetur adipisicing elit Lorem ipsum dolor sit amet, consectetur adipisicing elit Lorem ipsum dolor sit amet, consectetur adipisicing elit Lorem ipsum dolor sit amet, consectetur adipisicing elit + + + jms_use_text + jms_text_message + 10 + false + + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + false + false + false + false + false + 0 + true + true + + + + + + + + diff --git a/examples/perf/jmeter/README.md b/examples/perf/jmeter/README.md new file mode 100644 index 0000000000..b1b2c6a699 --- /dev/null +++ b/examples/perf/jmeter/README.md @@ -0,0 +1,45 @@ +####Running the ActiveMQ Artemis JMeter Performance Testing Examples + +######Create and run a sample broker for performance testing: + +```sh +artemis create my-broker --queues exampleQueue --topics exampleTopic + +my-broker/bin/artemis run +``` +######Download and Install JMeter's latest release: http://jmeter.apache.org/download_jmeter.cgi + +######Copy artemis-jms-client dependencies under $JMETER_HOME/lib folder: + +- artemis-jms-client.jar +- artemis-core-client.jar +- jgroups.jar +- artemis-commons.jar +- jboss-logmanager.jar +- jboss-logging.jar +- commons-beanutils.jar +- commons-logging.jar (already present under JMeter's lib folder - may not be needed) +- commons-collections.jar (already present under JMeter's lib folder - may not be needed) +- artemis-selector.jar +- artemis-journal.jar +- artemis-native.jar +- netty-all.jar +- javax.inject.jar +- geronimo-jms_2.0_spec.jar + +######Create a jndi.properties file with the connectionFactory Server Information: + +``` +connectionFactory.ConnectionFactory=tcp://localhost:61616 +``` + +######Pack jndi.properties file into a jar file and put it under $JMETER_HOME/lib folder: + +```sh +jar -cf artemis-jndi.jar jndi.properties +``` + +######Open jMeter and run the available Test Plan examples: + +- 1.jms_p2p_test.jmx +- 2.pub_sub_test.jmx diff --git a/examples/perf/jmeter/jndi.properties b/examples/perf/jmeter/jndi.properties new file mode 100644 index 0000000000..d3e2c4d67f --- /dev/null +++ b/examples/perf/jmeter/jndi.properties @@ -0,0 +1,14 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +connectionFactory.ConnectionFactory=tcp://localhost:61616