Search code examples
jmeteribm-mqjmeter-pluginsjmeter-3.2jmeter-4.0

Configuration of MQ with JMeter


Please provide your suggestion for following statement:

I need to do a MQ Websphere performance testing. The MQ's are installed on a remote machine. I need to configure with JMeter and need to pass data in format of XML and CSV files to MQ. JMeter is installed on my local machine. I searched online for configurations, where I found following options of configuring it:

  1. JMS Point-to-Point sampler.
  2. JSR223 Sampler
  3. JMS Publisher/Subscriber

The current MQ which I have, has following configuration data:

“host name” “service port” “channel name” “queue manager name” “queue name” “userid” and “password”

Could any one please suggest the best possible way of configuring MQ and sending the test data files. Do I have to install the MQ on my local machine too? Also, kindly provide a link/list of necessary jar files required for the same.

Note: JMeter version is 3.0(r1743807) and IBM MQ Websphere version is : 7.5


Solution

    1. I believe the only way is JSR223 Sampler.
    2. You can obtain the necessary MQ Client JAR files from IBM Fix Central. Once done copy them to JMeter Classpath. If you really want/have to continue with JMeter 3.1 you will also need groovy-all.jar
    3. If you're looking for some sample code check out Running the MQPubSubApiSample Java sample and/or IBM MQ testing with JMeter - Learn How
    4. According to JMeter Best Practices you should always stick to the latest version of JMeter so consider upgrading to JMeter 4.0 (or whatever version is available on JMeter Downloads Page