Performance Testing with JMeter

JMeter is the solution of Performance testing for the small size company but it’s not like that big company can not be used. Actually It is the open source free software and no need to pay any bucks for this. It is the Jakarta project and released under Apache license. It is desktop application and purely based on Java technology.

If you want to use JMeter in Windows machine then you need only JDK 4.0 or extended version. Just download JMeter from Apache Jakarta Projects and unzip the file any desired location. Now open the command line and go through unzipped file and run jmeter.bat file. It will open the JMeter window.

Well, first we discuss about Web Performance Testing. So Before starting with JMeter I want to clear some important terms of JMeter which will see during creating web test plan.

Test Plan: Here we plan our performance case according to needs and requirement. This is starting point of any performance testing in JMeter.

Thread Group: Thread Group is the beginning point of any Test Plan. Thread Group is set of request that simulate the user actions and all the elements of Test Plan should be under Thread Group. It works like LoadRunner Scenario. In Thread Group we define the Number of User, Ramp Up, and Loop Count.

  • Number of Thread (User), as a name we define the number of users, who will simulate the performance test steps.
  • Ramp-Up option used to set the time that waited between each and every user run. Suppose if you have define 5 then each and every user will activate after 5 seconds. All the time will be in seconds.
  • Loop Count is the option where we set that how many times users will repeat the actions.

Sampler: With the help of sampler JMeter send the request to web server.

Listener: Listener is same as Result window of any tools. It will help to analyze the test result. JMeter provides different kind of Listener which we used according to our needs.

See JMeter is having lots of element of Test Plan but these are enough to create sample script for Web Application. For the more details about Test Plan element refer this link.

In JMeter we can create Web Test Plan in two ways-

  • Add the Sampler Manually
  • Add the Sampler through Recording

First I want to discuss that how to create test plan manually-

Just open the JMeter through jmeter.bat file.

Now this is the screen where we will add our test plan.

Every test plan starts with Thread Group so we should add thread group first. For add the Thread Group, just select Test Plan > Click mouse right click > Select Add > Select Thread Group and left click of mouse. It will add Thread Group in your test plan.

Now time to fill some data in Thread Group screen. According to your needs just fill the data in Number of Threads (Users), Ramp-Up, and Loop Count fields.

After adding Thread Group in test plan, we need to add HTTP request default in Thread Group. For adding this- Select Thread Group > Click right click of mouse > Select Add > Select Config Element > Select HTTP request default.

Fill the only Server Name/IP field and port number. For example Server Name:, port: 80

Now the time to add sampler with this thread group. Select Thread Group and right click > Select Add > Select Sampler > Select HTTP Request. Now configure the sampler, fill only Path field because you have already configure the Server Name in HTTP request default.

At last, just add the Listener with this thread group. Select Thread Group and right click > Select Add > Select Listener > Select View Result in Table.

We have created the one sample script and now the time to run this script. In JMeter we can run the script in two ways-

  • Run > Start
  • Ctrl+R

But before running this script just select the listener. It will display your result of test plan.

12 thoughts on “Performance Testing with JMeter

  1. akshatasm

    Hello Mayank,

    This is a very clear information on the basics level of creating a Test plan. It was very useful to me. I am currently trying to use JMeter for functionality testing.

    Can i get some guidance on,
    1. How do i sort the recorded samplers into Simple controllers? Can we configure such that they fall into the right controller or i have to move them manually…

  2. Sashikala

    Please can anyone tell me how to stop all the threads created.

    I created 10 threads and i have run the test,later on i wanted to test for 20 threads so the above created 10 threads are also running when i am trying to run the 20 threads.Please can anyone tell me how to stop all the threads.i am new to Jmeter.


    1. madhu

      Use CNTRL + . to stop all threads

  3. Aruna

    Is there any trail version for JMeter Tool?

  4. I am sure you folks might already found answers to your question. But for blog reference purposes here I am answering to my knowledge!
    For post#2,
    you need to post your test plan configuration details to answer your question. But my suggestion is, start by looking at test results, I mean number of samples and their order!

    For post#3,
    As far as I know Jmeter is open source and free!

    -Chandan Benjaram

  5. Mahendar

    For Post #2:
    I think you might be confused by looking at results. Before running your tests, clear your previous test results by Run->Clear All (or Ctrl-E).

  6. Pradeep Kumar Tiwari

    very generic information as all these can be found any where..
    any ides about ssl and security certificate with jmeter https spoofing etc

  7. Saurabh

    Please give some idea on Add the Sampler through Recording. As you have discussed manual stuff only. Aniways nice post !

  8. Good article for those who is new with JMeter! Can I suggest you a set of articles about JMeter from our company( I think, they are helpful.

  9. keyur

    hi, when i test my application i get throughput=infinite/minute and every thing else is 0, so can you guide if i am going wrong.. my mail id is i will be very help full to you….thanks

  10. keyur

    Hi, there
    i have load tested my application and got response but how should i calculate that my result was up to mark, or was it dull so i can take steps to improve it, can you help me..

Leave a Reply

Please log in using one of these methods to post your comment: 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

%d bloggers like this: