JMeter – quick start from setting up to increasing size.

To set up Jmeter at your local you need to follow some instructions I have mentioned below. And this will depend on the type of OS you are using.

As we all know Jmeter is an open-source tool and the Jmeter community is pretty active in taking questions over the issues, discussions of the tool. Let’s get started then!

To set up Jmeter at your local you need to follow some instructions I have mentioned below. And this will depend on the type of OS you are using.

As we all know Jmeter is an open-source tool and the Jmeter community is pretty active in taking questions over the issues, discussions of the tool. Let’s get started then!

How to get Jmeter?

Download Jmeter from http://jakarta.apache.org/site/downloads/downloads_jmeter.cgi to your local.

Once this is done extract JMeter to a local directory say apache-JMeter-2.11.

How to set up JMeter?

You need not set any additional environment variables to make JMeter run all you need to do is unzip JMeter and that’s it.

JMeter has this much understanding that it can locate classes from jars in the here-under archives:

  • {JMETER_HOME}/lib

It is used for utility jars, so JMeter picks all the utilities from the lib folder automatically.

  • {JMETER_HOME}/lib/ext

This is used for JMeter components and plugins, as in if customizable plugins or components which the user has made.

What does the ext folder have?

In other words, if user has formed a new JMeter component, then the user should make a jar from them. And then copy that jar into {JMETER_HOME}/lib/ext.  Now rest work JMeter will do on its own, such that it will automatically find JMeter components in any jars that can be found here.

What does the lib folder have?

Utility and dependency jars (libraries etc) can be placed in the lib directory. JMeter only accepts and understands the language of jars other archives like zipping, etc are not acceptable within JMeter scope.

In short, you need to copy all the libraries to lib.

How to start JMeter?

  • If you are on Windows :

Via command line go to {JMETER_HOME}\bin and run jmeter.batch file

  • If you are on Linux:

Execute jmeter.sh

And this will start JMeter GUI for you.

What does the docs folder have?

This folder has all HTML pages of the documentation. I would suggest reading them before start working with JMeter.

How to increase memory in JMeter?

Often if you increase the load or number of threads you can see “java.lang.OutOfMemoryError: PermGen space”, in JMeter.

This means that you have to increase the HEAP and the PERM size in the jmeter.bat(Windows). For this try this :

HEAP=-Xms1024m -Xmx1024m

PERM=-XX:PermSize=256m -XX:MaxPermSize=256m

and for the linux environment directly run

JVM_ARGS=”-Xms1024m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m” jmeter.sh

Author: Khyati Sehgal

Khyati has more than 12 years of experience in quality assurance engineering. Khyati has worked extensively on Manual and Automation testing of various technologies and domains like data quality. From last 6 years, She is leading QA Activities on Agile/Scrum projects while continuously contributing in playing role as a Scrum master, continuous integration, iteration planning, facilitating requirement analysis and closure. On automation front, She has explored gui, web services and mobile automation. Tools/ Technologies used:- Selenium/WebDriver, Core Java, JUnit, TestNG, Maven, SoapUI. Jenkins, Appium, Selenium backed and selenium remote driver. Have delve into android phone/tab of verison upto 6 (marshmallow), ios phone/i pad, and mobile websites

9 thoughts on “JMeter – quick start from setting up to increasing size.”

  1. Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You obviously know what youre talking about, why waste your intelligence on just posting videos to your weblog when you could be giving us something informative to read?

    Like

  2. Khyati,

    I tried putting the the XMS and XMS parameters in front of ./jmeter.sh, but that is not working. Is there any way to pass these arguments in the jmeter.sh file as we do for jmeter.bat file.

    Like

  3. What’s Happening i am new to this, I stumbled upon this I’ve found It positively helpful and it has aided me out loads. I hope to contribute & aid other users like its aided me. Good job.

    Like

Leave a comment