---
title: "JMeter测试ActiveMQ"
author: "harbey"
date: "2012-11-28T14:31:44Z"
tags: []
categories: ["企业架构"]
slug: "jmeter-activemq"
draft: false
lastmod: "2013-01-01T21:35:47Z"
id: 1736614
url: "https://harbey.iteye.com/blog/1736614"
---

1、环境：
jmeter版本：apache-jmeter-2.8
ActiveMQ版本：apache-activemq-5.4.3

2、测试：
2.1 将%ActiveHome%/lib下的jar拷贝到%JMeterHome%/lib下
2.2 运行%JMeterHome%/bin/jmeter.bat
2.3 在Sample里选择JMS point-point，配置见图![](http://dl.iteye.com/upload/attachment/0077/1905/b6796d14-b0d9-3b67-a932-2f2c3ce780c9.jpg)；
  在网上找了另外一种方法，需要创建一个jndi.properties文件，然后将该文件打包到%ActiveHome%/bin下的ApacheJMeter.jar中，目的是为了将jndi.properties加入到classpath下；
  这种方法，可以在JMS Point-to-Point页面的“JNDI Properties”中添加来完成，而取代将jndi.properties加入到classpath中；