Code360 powered by Coding Ninjas X Code360 powered by Coding Ninjas X
Table of contents
About Apache JMeter
Installation of Apache JMeter
System Requirements
Steps for the Installation of Apache JMeter
Launching Apache JMeter
Running JMeter in GUI Mode
Running JMeter in Non-GUI Mode
Running JMeter in Command Line Mode
Running JMeter in Server Mode
Frequently Asked Questions
Does JMeter require JDK?
Is JMeter only for Java?
Is JMeter and Apache JMeter the same?
Can JMeter run JavaScript?
Can we write code in JMeter?
Last Updated: Mar 27, 2024

How to install Apache JMeter

Author Amit Singh
0 upvote
Master Python: Predicting weather forecasts
Ashwin Goyal
Product Manager @


Have you performed testing manually? Or have you used any software or tool for testing?


This article is focused on one of the testing software, which is known as JMeter. We will also study the proper procedure for installation. We will also verify if it is working correctly or not. We will also discuss the different modes in which you can run JMeter. Let’s see all these things in more detail.

About Apache JMeter

JMeter is a software package based on Java. It helps in performing load tests, regression tests, performance-oriented businesses, etc. We can use it on many different protocols and different technologies.

It is a Java Desktop Application. It has a GUI or Graphical User Interface. This GUI uses Java Swing graphical API. Due to this, we can run it on any environment or system that can accept Java Virtual Machine like Linux, Windows, Mac, etc. 

Get the tech career you deserve, faster!
Connect with our expert counsellors to understand how to hack your way to success
User rating 4.7/5
1:1 doubt support
95% placement record
Akash Pal
Senior Software Engineer
326% Hike After Job Bootcamp
Himanshu Gusain
Programmer Analyst
32 LPA After Job Bootcamp
After Job

Installation of Apache JMeter

Now, let's move on to the installation of Apache JMeter in detail. But first, let's see the requirements before the installation of Apache JMeter. 

System Requirements

The following are the requirements for the installation of Apache Jmeter:

  • JDK or Java Development Kit: JDK is a must for the installation of JMeter.
  • Operating System or OS: It doesn't have any minimum requirement.
  • Memory: It doesn't have any minimum requirement.
  • Disk Space: It doesn't have any minimum requirement.

Steps for the Installation of Apache JMeter

As we have already studied before that, JMeter is a Pure Java Application. 

  • The first step is to install the Java SE Development Kit. You can get the latest version from here. 


  • After the successful installation, you can verify it by:
    • In Windows/Linux, first, open the Command Prompt or Terminal.
      • Type the command "java -version" and press Enter.
    • If the installation was successful, you will see the following output.


  • After the installation and verification, it's time to move to the next step. The second step is to download the latest version of Apache JMeter. You can download it from here.
  • The installation process is relatively easy and straightforward. You can simply extract the compressed file. Now you can copy and paste the extracted file wherever you want.


Now, let's study some of the most critical JMeter files and directories.


  • /bin: It contains a JMeter script file that helps in starting JMeter.
  • /docs: It has the documentation files of JMeter.
  • /extras: It includes any other related extra files.
  • /lib/: It contains the library of Java necessary for JMeter.
  • /lib/ext: It consists of the core jar files. These files are essential for JMeter and the protocols.
  • /lib/junit: It is the Junit library that is necessary for JMeter.
  • /printable_docs: It contains the docs and guide that can be helpful while working with JMeter.

Launching Apache JMeter

After the installation, let's try to launch and verify that our installation is successful.

You can run JMeter in three modes:

  1. GUI Mode,
  2. Command Line Mode, and
  3. Server Mode.

Running JMeter in GUI Mode

If you are running the Windows OS, you can just run JMeter by the following steps:

  • First, go to the destination where you installed JMeter.
  • Now click on the "/bin" folder.
  • Inside the /bin folder, click on the "jmeter.bat" to run it. 
  • It should look something like this.



Running JMeter in Non-GUI Mode

When you run JMeter in GUI Mode, it consumes more memory than in Non-GUI Mode. So to save the resources, you can also run it in Non-GUI Mode. 

Now, let's see how we can start JMeter in Non-GUI mode. 

Running JMeter in Command Line Mode

To run the JMeter in Command Line Mode, you need to open a terminal. Now, follow these steps:

  • Go into the "apache-jmeter- 5.5" folder using the "cd" command.


  • Now enter the following command to run JMeter with some parameters to run JMeter.
jmeter -n -t [jmx file] - l [result file] -H [host] -P [port]

Running JMeter in Server Mode

Server Mode has a critical use. We can do distributed testing using the server mode.

To run the JMeter in Server Mode, you need to open a terminal. Now, follow these steps:

  • Go into the "apache-jmeter- 5.5" folder using the "cd" command.
  • Now, move into the "bin" folder again using the "cd" command. 


  • Finally, type "jmeter-server" to run JMeter in server mode.


Check out this problem - Smallest Distinct Window

Frequently Asked Questions

Does JMeter require JDK?

If you want to create the JMeter source or develop JMeter plugins, you will need a JDK 8 or higher.

Is JMeter only for Java?

The Apache JMeter, popularly known as the JMeter, is open-source software. The software is a pure Java application developed to load functional test behavior and measure performance.

Is JMeter and Apache JMeter the same?

For Apache JMeter, JMeter Plugins is a separate project. Each plugin has a distinct function that speeds up the creation and execution of the JMeter Test Plan. Through the Plugin Manager, users can install plugins.

Can JMeter run JavaScript?

JMeter supports JavaScript over Java using Rhino. So, it has limitations to support only Rhino-supported functions.

Can we write code in JMeter?

JMeter enables writing Java code using a non-strict mode when the data type does not need to be specified or by strict mode when creating variables.


In this article, we have studied the installation of one of the Testing Software, which is known as Apache JMeter in detail. 

We hope that this article has provided you with the help to enhance your knowledge regarding the Apache JMeter and if you would like to learn more, check out our articles on JMeter Functions and JMeter Timers.

Recommended Readings:

Refer to our guided paths on Coding Ninjas Studio to learn more about DSA, Competitive Programming, JavaScript, System Design, etc. Enroll in our courses and refer to the mock test and problems available; take a look at the interview experiences and interview bundle for placement preparations.

Do upvote our blog to help other ninjas grow.

Merry Learning!

Previous article
Overview of JMeter
Next article
What is the difference between JMeter and Postman?
Live masterclass