JMeter performance test

JMeter性能测试

You can use JMeter to test the performance of your ActiveMQ Server. Please refer to the JMeter site for detailed instructions on using this software.

您可以使用JMeter测试ActiveMQ服务器的性能。有关使用本软件的详细说明,请参阅JMeter网站。

Downloading the JMeter Performance Test Binary

下载JMeter性能测试二进制文件。

You can download the latest activemq-jmeter-*.zip distribution from the following

您可以下载最新的activemq-jmeter-*。zip分发从下面。

Building the JMeter Performance Test from source

从源代码构建JMeter性能测试。

1. Check out the latest head version of ActiveMQ from Source. Build from source.

1。从源代码中查看ActiveMQ最新的head版本。从源代码构建。

2. Run maven from the JMeter directory. This will build JMeter into the target directory.

2。从JMeter目录运行maven。这将把JMeter构建到目标目录中。

3. Run JMeter.bat from the \bin directory to start JMeter.

3所示。JMeter运行。bat从\bin目录开始JMeter。

4. There are sample Test Plans located at \bin\testfiles directory that you could open to test ActiveMQ.

4所示。有一些示例测试计划位于\bin\testfiles目录,您可以打开测试ActiveMQ。

Building a Test Plan

建立一个测试计划

For a Producer Sampler
1. Add a Thread Group.
2. Add the producer sampler "Producer Sampler" from the Sampler menu.
3. Highlight the Producer Sampler then right click to add the producer listener "View Producer Results" from the Listener menu.
4. Go to the Thread Group element and set the Number of Threads, Ramp-Up Period and Loop Count to 1.

对于生产者采样器1。添加一个线程组。从采样器菜单中添加生产者采样器“生产者采样器”。3所示。选中“生产者采样器”,然后右击,从监听器菜单中添加生产者侦听器“查看生产者结果”。4所示。转到线程组元素,并设置线程的数量、加速周期和循环数到1。

For a Consumer Sampler
1. Add a Thread Group.
2. Add the consumer sampler "Consumer Sampler" from the Sampler menu.
3. Highlight the Consumer Sampler then right click to add the consumer listener "View Consumer Results" from the Listener menu.
4. Go to the Thread Group element and set the Number of Threads, Ramp-Up Period and Loop Count to 1.

对于消费者取样器1。添加一个线程组。从采样器菜单中添加消费者采样器“消费者采样器”。3所示。选中“消费者采样器”,然后右键单击“从侦听器菜单中添加消费者侦听器“查看消费者结果”。4所示。转到线程组元素,并设置线程的数量、加速周期和循环数到1。

The JMeter Performance Test Module consists of:

JMeter性能测试模块包括:

1. JMeter Producer Sampler

1。JMeter生产商取样器

  • A JMeter Sampler tells JMeter to send requests to the server. Pluggable Samplers allow unlimited testing capabilities.
  • JMeter Sampler告诉JMeter向服务器发送请求。可插入的采样器允许无限的测试能力。
  • The Producer Sampler will send messages to an ActiveMQ Server.
  • 生产者采样器将消息发送到ActiveMQ服务器。

The Producer Sampler has the following parameters:

生产采样器有以下参数:

  • Server URL - defines the server url i.e. tcp://localhost:61616
  • 服务器URL -定义服务器URL,即tcp://localhost:61616。
  • Duration (min) - the duration of the test.
  • 持续时间(min) -测试的持续时间。
  • Ramp Up (min) - the time in which the Producer will reach it's stable/peak state.
  • 增加(分钟)-生产者到达它的稳定/峰值状态的时间。
  • No. of Producer - The number of Producer that would be sending the message.
  • 不。生产者——将发送消息的生产者的数量。
  • No. of Subject - The number of Subject that would be created then send. Note that the number of Subject should be less than or equal to the No. of Producer.
  • 不。主题-将被创建的主题的数量然后发送。注意主题的数量应该小于或等于No。的生产商。
  • Message Size (bytes) - The size of the message to send.
  • 消息大小(字节)-发送消息的大小。
  • Delivery Mode - Default is Non-Persistent.
  • 交付模式-默认是不持久的。
  • Messaging Domain - Default is Topic
  • 消息域-默认是主题。
  • Message Interval - Default/Custom Interval. When Custom Interval was Selected user must provide Interval Value (mins).
  • 消息间隔-默认/自定义间隔。当选择自定义间隔时,用户必须提供间隔值(分钟)。
  • Message Queue Servers - List of available MQ Servers.
  • 消息队列服务器——可用MQ服务器的列表。

2. JMeter Producer Listener

2。JMeter生产商侦听器

  • Listeners provide access to the information JMeter gathers about the test cases while JMeter runs.
  • 当JMeter运行时,侦听器提供对测试用例的信息JMeter的访问。
  • The Producer Listener would provide statistics with the number of messages sent and average messages per second.
  • 生产者侦听器将提供统计信息,并提供每秒发送的消息数和平均消息数。

3. JMeter Consumer Sampler

3所示。JMeter消费者取样器

The Consumer Sampler has the following parameters:

消费者取样器有以下参数:

  • Server URL - defines the server url i.e. tcp://localhost:61616
  • 服务器URL -定义服务器URL,即tcp://localhost:61616。
  • Duration (min) - the duration of the test.
  • 持续时间(min) -测试的持续时间。
  • Ramp Up (min) - the time in which the Producer will reach it's stable/peak state.
  • 增加(分钟)-生产者到达它的稳定/峰值状态的时间。
  • No. of Consumer - The number of Consumer that would be sending the message.
  • 不。消费者——将发送消息的消费者的数量。
  • No. of Subject - The number of Subject that would be created then send. Note that the number of Subject should be less than or equal to the No. of Consumer.
  • 不。主题-将被创建的主题的数量然后发送。注意主题的数量应该小于或等于No。的消费者。
  • Delivery Mode - Default is non-Durable.
  • 交付模式-默认是不持久的。
  • Messaging Domain - Default is Topic.
  • 消息域-默认是主题。
  • Message Queue Servers - List of available MQ Servers.
  • 消息队列服务器——可用MQ服务器的列表。

4. JMeter Consumer Listener

4所示。JMeter消费者侦听器

  • The Consumer Listener would provide statistics with the number of messages received and average messages per second.
  • 消费者侦听器将提供统计信息,并提供每秒接收的消息数量和平均消息。
© 2004-2011 The Apache Software Foundation.
Apache ActiveMQ, ActiveMQ, Apache, the Apache feather logo, and the Apache ActiveMQ project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Graphic Design By Hiram