1 Reply Latest reply on Apr 15, 2011 12:12 PM by mielket

    Fuse Message Broker(ActiveMQ) and JMeter

    rajk1000

      Hi,

       

      I'm just wondering if there are any examples of testing done with JMeter, some sample test scripts for example, of a typical messaging scenario.

       

      On the Apache website, this link exists, which promises some good stuff, but the source tree link seems quite old (2006), and the JMeter install there, does not seem to deliver what is promised in the link? ie JMeter Producer Sampler , Producer Listener, Consumer Sampler etc (unless I am not seeing it somehow).

       

      This is the link..

       

      http://activemq.apache.org/jmeter-performance-tests.html

       

      Have times moved forward since then? DO you know where I can find such samples?

       

      Or even a nice tutorial describing how to use JMeter in a typical messaging scenario, ie Producing to a Queue, then COnsuming from the queue, and writing to a DB?

       

      Thanks In Advance.

        • 1. Re: Fuse Message Broker(ActiveMQ) and JMeter
          mielket

          Hi,

           

          This page looks old indeed. Sorry, I don't have any updated version available but wanted to drive you to the maven-activemq-perf-plugin that can easily be used to run custom load tests. The plugin supports a number of configuration options but will fall behind JMeter on the reporting side. Still it might serve your needs. Perhaps give it a try.

           

          Some more notes: http://tmielke.blogspot.com/2011/02/load-tests-with-activemq.html.

           

          The sample pom file on the plugin documentation did not work that easily outside of the AMQ source code folder. Here is a sample pom that I have been using a lot:

           

          <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
          
              <modelVersion>4.0.0</modelVersion>
          
              <groupId>com.fusesource.test</groupId>
              <artifactId>activemq-perftest</artifactId>
              <version>1.0-SNAPSHOT</version>
              <packaging>jar</packaging>
              <name>ActiveMQ :: Performance Test</name>
              <description>Performance Testing Framework for ActiveMQ</description>
          
            <dependencies>
              <dependency>
                <groupId>log4j</groupId>
                <artifactId>log4j</artifactId>
              <version>1.2.16</version>
              </dependency>
            </dependencies>
          
              <build>
                  <plugins>
                      <plugin>
                          <groupId>org.apache.activemq.tooling</groupId>
                          <artifactId>maven-activemq-perf-plugin</artifactId>
                          <version>5.6-SNAPSHOT</version>
                      </plugin>
                      <plugin>
                          <groupId>org.apache.activemq.tooling</groupId>
                          <artifactId>maven-activemq-memtest-plugin</artifactId>
                      </plugin>            
                  </plugins>
              </build>
          </project>
          

           

          With this pom, follow the instructions on the plugin doc on how to start consumer and producer.