Automation, Automation Framework, Functional Tests, JMeter, Load Tests, Performance Tests, Services Testing, Testing

JMeter – quick start from setting up to increasing size.

To set up Jmeter at your local you need to follow some instruction 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. Lets get started then !

How to get Jmeter ?

Download Jmeter from 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 to 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 user has made.

What does ext folder has?

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

What does lib folder has?

Utility and dependency jars (libraries etc) can be placed in the lib directory. JMeter only accept and understand language of jars other archives like zip , 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:


And this will start JMeter gui for you.

What does docs folder has?

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

How to increase memory in JMeter?

Often if you increase the load or number of threads the 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”

8 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?


  2. Khyati,

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


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s