JMeter Load Testing : Part 1 — Installing JMeter on Windows

I recently had to run some performance load tests against a number of API apps to make sure they can handle the predicted load and identify the point at which performance degraded and the app needed to scale out. JMeter is a pretty impressive tool that can generate a rich set of reports for analysis and is very simple to configure and run if you come from an IT background.

JMeter is an open source load testing software tool from the Apache Software Foundation that runs on Java and is designed to load test web applications & APIs. It’s first official release was in December of 1998, so its a fairly well used, scrutinized & reputed tool for load testing.

Make sure you have installed the latest java sdk and set the PATH & JAVA_HOME environment variables.

Example : If you have installed JDK in C:\Program Files\Java\jdk-12.0.2\ then your variables should look like :

  • Path : C:\Program Files\Java\jdk-12.0.2\bin
  • JAVA_HOME : C:\Program Files\Java\jdk-12.0.2

Verify that Java is now running by opening the command prompt and executing the following commands :

$ java --version$ javac

If these commands display the version information and javac usage information then you are good to go!

To download JMeter go to the official Apache JMeter site at :

JMeter downloads page

Click on the link under the Binaries section. This should trigger the download of the zip file. Once the zip is downloaded, go to your downloads and extract the contents of the zip file.

Once extracted, change directory to your \bin folder, locate and run the jmeter.bat file by double-clicking on it.

JMeter bat file

JMeter UI should then start and provide you with an empty test plan

JMeter UI

Lets now download the JMeter Plugins Manager. This will provide you with an easy way to install some of the reporting listeners we will be using later when we create performance tests. To do this, navigate to :

JMeter plugins manager download screen

Click on the link to download plugins-manager.jar

Once downloaded, move it to the \apache-jmeter-5.3\lib\ext folder, and restart JMeter. You should now be able to see a new icon at the top right corner of JMeter UI. Clicking on this will open up the plugins manager for JMeter.

JMeter plugins manager icon

Open plugins manager, and add the following Graphs to JMeter :

  • 3 Basic Graphs
3 Basic Graphs plugin for JMeter

After selecting 3 Basic Graphs click on Apply Changes and Restart JMeter.

To launch JMeter from the command line :

  • Right-click on This PC -> Select Properties -> Advanced system settings
  • Click on Environment Variables. This should open up the Environment Variables dialog.
  • Under the System Variables section, locate the Path variable. Select Edit…
  • Select New -> and past the path to your JMeter bin directory. Ex : C:\Users\UserA\Downloads\apache-jmeter-5.3\apache-jmeter-5.3\bin
  • Click Ok & Save/Apply

You can now open up the cmd prompt and run JMeter from anywhere using the following command :

$ jmeter
JMeter launch using cmd

You have now successfully installed JMeter on your Windows machine and can begin writing Load Tests which I will cover in subsequent parts of this series.




Software Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Alum Spotlight: Julio B!

Getting Started Developing with Magic Leap One and Unity

Salesforce Trailhead學習筆記(二) Salesforce Platform Basics

My First Day at Upperline

Dunder Data Challenge #5 Solution

Manage Your Workflows With Apache Airflow.

QA Automation-Weehawken,NJ

QA Automation-Weehawken,NJ

10 Examples That Will Make You Use Pandas Query Function More Often

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rimaz Mohommed

Rimaz Mohommed

Software Developer

More from Medium

How to fix CI build with Azure Hosted Agent for Xamarin iOS project that uses C# 10

How did I run front-end tests in GitLab CI

Configuration of Apache Webserver in Docker Using Ansible PlayBook

Effective use of condition in Delta table Merge command using PySpark