Monday 18 February 2019

Loadtesting Websphere IBM MQ server using JMETER


For Loadtesting Apache Active MQ , JMS-Point-to-Point sampler in Jmeter will help us. Think that you do not have JNDI settings and no apache activemq for JMS messaging, instead IBM Websphere MQ is in place.  One day your manager is coming and asking you to test IBM MQ using open source testing tool as they do not ready to pay for small scale performance testing.



In that case, here is the steps to use Jmeter to load test IBM Websphere MQ.
Step 1:-

Below are the Java and MQ jars needed.  Download all these jar files and place it under Jmeter_Home/ lib/ext directory. 

1. jmeter-jms-skip-jndi-0.0.1.jar is the jar contains the MQ declaration and coding to connect it. You can down it from the URL  ‘http://www.java2s.com/Code/Jar/j/Downloadjmeterjmsskipjndi001jar.htm‘
2. com.ibm.mq.jar http://www.java2s.com/Code/Jar/c/Downloadcomibmmqjar.htm
3.org.springframework.beans.jar http://www.java2s.com/Code/Jar/o/Downloadorgspringframeworkbeansjar.htm
4.org.springframework.jms.jar https://mvnrepository.com/artifact/org.springframework/spring-jms/3.0.4.RELEASE
5.javax.jms.jar https://mvnrepository.com/artifact/javax.jms/javax.jms-api/2.0
6.spring-core.jar “https://mvnrepository.com/artifact/org.springframework/spring-core/3.1.1.RELEASE”

·Open Jmeter -> File-> New->TestPlan -> Add Thread Group

·Under Thread Group add Samplers->JMS Point-to-Point Sampler and configure the parameter. As given in the below Screenshot.

·Run Jmeter Script and Enjoy IBM MQ load testing.






You should be very care full about the JNDI properties they are case sensitive

1.channel:- BSIS.CLIENT
2.hostName:- bsisst.linux.us.ams1907.com
3.port:- 1420
4.queueManager:- BSISQM
5.transportType:-1
6.initial context factory:- ·com.elega9t.jmeter.jms.InitialContextFactory
7.Queueconnectionfactory:- CONNECTION_FACTORY
8.Request Queue: - QUEUE_ N413.DICE.BSIS.OCR.METRICS.QA3