Go back to all articles

How to Install JMeter on Windows, Mac and Linux

Guide
15 min read
Denis Sautin

Denis Sautin

Author

Denis Sautin

Denis Sautin is an experienced Product Marketing Specialist at PFLB. He focuses on understanding customer needs to ensure PFLB’s offerings resonate with you. Denis closely collaborates with product, engineering, and sales teams to provide you with the best experience through content, our solutions, and your personal journey on our website.

Full Bio

Product Marketing Specialist

Reviewed by Boris Seleznev

boris author

Reviewed by

Boris Seleznev

Boris Seleznev is a seasoned performance engineer with over 10 years of experience in the field. Throughout his career, he has successfully delivered more than 200 load testing projects, both as an engineer and in managerial roles. Currently, Boris serves as the Professional Services Director at PFLB, where he leads a team of 150 skilled performance engineers.

Full Bio

To install JMeter, install Java 17 or newer, download the binary archive of Apache JMeter 5.6.3 from jmeter.apache.org, unpack it into a folder without spaces in its name, and start bin/jmeter.bat on Windows or bin/jmeter on macOS and Linux. JMeter has no setup wizard, so the unpacked folder is the complete installation. On a Mac with Homebrew, brew install jmeter does all of it with one command and brings its own Java. This guide is for testers and developers, beginners included, who need a working JMeter before they can load test an application and measure performance. Below are the steps for each system, a simple first load test that proves the installation works, and the error messages with their fixes.

At a glance

  • Java. JMeter 5.6.x needs Java 8 or later, and the Apache team recommends 17 or later. The release notes say the next major release would require 17, so start there.
  • Windows. Install a JDK, unpack the zip into a path such as C:\tools, run jmeter.bat. The script looks for java on your PATH.
  • macOS. Run brew install jmeter. The formula adds OpenJDK 21 and Plugins Manager.
  • Linux. Take the tgz from Apache. On Ubuntu, apt install jmeter gives you version 2.13.
  • How we checked. On 30 November 2026 we ran JMeter 5.6.3 on a Debian machine that already had Java: download, checksum, unpacking, PATH, the first test and seven of the errors below. The Java packages and the Windows and macOS steps come from the JMeter manual and start scripts, the Homebrew formula and the package pages, read the same day.

What You Need Before You Install Apache JMeter

Apache JMeter is open source software for load testing, written in Java. The virtual users in your plan put the server under heavy load, and the report shows the response times, throughput and errors they got. Testing web applications was the first goal when the tool was originally designed. Its range has expanded over the years, and the same program now sends requests to REST and SOAP web services, to databases over JDBC and to mail servers. JMeter has no browser engine. For a web page it makes the HTTP calls itself and skips the JavaScript and the rendering, so the numbers describe your server and say nothing about the work of a visitor's browser. Java is the only thing you must install first. The user manual says JMeter should run on any operating system with a compliant JVM.

Choose Java with three facts in mind:

  • Version. The release notes say JMeter 5.6.x requires Java 8 or later, with 17 or later recommended, and that the next major release would require Java 17.
  • JDK or JRE. A JRE runs JMeter. The manual prefers a JDK, because recording HTTPS traffic needs the keytool utility from it.
  • Headless builds. Server packages such as openjdk-21-jre-headless have no graphics libraries. Command line tests work on them, and the JMeter window does not open.

Third-party guides disagree about the Java version, so we tested it. We started JMeter 5.6.3 on five Java releases on Linux and ran the same small plan from the command line each time (5 users, 10 requests each, against a web server on the same machine):

JavaRequestsErrorsExtra console messages
8 (1.8.0_514)500None
11 (11.0.33.1)500Warning that the Nashorn engine will be removed
17 (17.0.21.1)500None
21 (21.0.12)500None
25 (25.0.5.1)500Warnings about sun.misc.Unsafe from the XStream library

JMeter also printed four StatusConsoleListener warnings about package scanning at each start. They did not stop any of the runs.

The Latest Version and the Right File

Open the Apache JMeter download page and take a file from the Binaries block: apache-jmeter-5.6.3.zip or apache-jmeter-5.6.3.tgz. The contents are the same program. Version 5.6.3 was the latest version there on 30 November 2026, and the Apache archive dates it 7 January 2024.

Files with _src in the name are source code. We unpacked one to see what happens: the bin folder is there, but ApacheJMeter.jar is not, and the start script stops with "Unable to access jarfile".

How to Install JMeter on Windows

  1. Install a JDK. In a terminal, run winget install EclipseAdoptium.Temurin.21.JDK, or use the Temurin MSI installer. Open a new terminal and run java -version. If Windows prints a version, go on.
  2. Download the zip and check it: run certUtil -hashfile apache-jmeter-5.6.3.zip SHA512 and compare the result with the sha512 link next to the file. A match means the file arrived intact. To prove who published it, check the PGP signature from the same page.
  3. Unpack it into a short path, for example C:\tools, so that you get C:\tools\apache-jmeter-5.6.3. Keep spaces out of the path: the manual warns about problems with them, especially in client-server mode. You can rename the top folder, but leave the subfolders alone.
  4. Start JMeter. Double-click jmeter.bat in the bin folder. The JMeter window opens after a short wait. jmeterw.cmd does the same without a console window behind it.
  5. Add JMeter to PATH so you can call it from any folder. Search the Start menu for "Edit the system environment variables", click Environment Variables, add C:\tools\apache-jmeter-5.6.3\bin to Path, open a new terminal and run jmeter -v.

One detail saves time here. jmeter.bat calls java from PATH and never reads JAVA_HOME. If you have several Java versions and JMeter picks the wrong one, change the order in PATH.

Package managers also carry JMeter for Windows. The Chocolatey package (choco install jmeter) downloads the 5.6.3 zip from the Apache archive, checks its SHA-512 and needs a Java runtime. The winget package DEVCOM.JMeter installs an MSI built by a community project and pulls in Microsoft OpenJDK 21. Neither package comes from Apache.

How to Install JMeter on Mac

With Homebrew, run the following command, then start JMeter:

brew install jmeter
jmeter

The formula installs JMeter 5.6.3, depends on OpenJDK 21 and sets JAVA_HOME for JMeter by itself, so you do not need a separate Java. It also puts Plugins Manager 1.9 into the lib/ext folder. Run brew upgrade jmeter to update.

Without Homebrew:

  1. Install a JDK from the Temurin PKG installer and check it with java -version. The JMeter script finds a Mac JDK through /usr/libexec/java_home, so you can leave JAVA_HOME empty.
  2. Download and check the tgz. Run shasum -a 512 apache-jmeter-5.6.3.tgz and compare the result with the published checksum.
  3. Unpack it into your home folder: mkdir -p ~/opt && tar -xzf apache-jmeter-5.6.3.tgz -C ~/opt.
  4. Start it with ~/opt/apache-jmeter-5.6.3/bin/jmeter. To call jmeter from any folder, add that bin folder to PATH in ~/.zshrc.

How to Install JMeter on Linux

Skip the distribution package. Ubuntu 22.04, 24.04 and 26.04 all list JMeter 2.13, while Apache offers 5.6.3. Install Java from the distribution and JMeter from Apache.

On Ubuntu 24.04 and 26.04, Java comes from the distribution:

sudo apt update
sudo apt install openjdk-21-jdk
java -version

For other distributions, Adoptium documents DEB, RPM and APK packages. Then download JMeter, verify it, unpack it and add it to PATH:

curl -fLO https://dlcdn.apache.org/jmeter/binaries/apache-jmeter-5.6.3.tgz
curl -fLO https://downloads.apache.org/jmeter/binaries/apache-jmeter-5.6.3.tgz.sha512
sha512sum -c apache-jmeter-5.6.3.tgz.sha512
mkdir -p ~/opt
tar -xzf apache-jmeter-5.6.3.tgz -C ~/opt
echo 'export PATH="$HOME/opt/apache-jmeter-5.6.3/bin:$PATH"' >> ~/.profile
. ~/.profile
jmeter -v

We ran this second block in an empty home directory. sha512sum answered apache-jmeter-5.6.3.tgz: OK, and the last line printed the JMeter banner with 5.6.3. A symbolic link from /usr/local/bin/jmeter to the script works too, because the script resolves the link to find its own folder.

Bash reads ~/.profile at login. A terminal window you open later may therefore not find jmeter until you log out and back in, so run . ~/.profile in it first. If your home folder already has a ~/.bash_profile, bash reads that file instead: put the export line there and load that file.

Check the JMeter Installation With a First Test

A version number proves that Java starts. A test proves that JMeter can load a plan, send requests and write a report. Start a small web server on your own machine in an empty folder, so the test data stays local and you load nobody else's system:

python3 -m http.server 8099 --bind 127.0.0.1

On Windows the command is usually python. Save this plan as first-test.jmx:

<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.6.3">
  <hashTree>
    <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="First test"/>
    <hashTree>
      <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Users">
        <intProp name="ThreadGroup.num_threads">5</intProp>
        <intProp name="ThreadGroup.ramp_time">5</intProp>
        <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController">
          <boolProp name="LoopController.continue_forever">false</boolProp>
          <stringProp name="LoopController.loops">10</stringProp>
        </elementProp>
        <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
      </ThreadGroup>
      <hashTree>
        <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="GET home">
          <stringProp name="HTTPSampler.domain">${__P(host,127.0.0.1)}</stringProp>
          <stringProp name="HTTPSampler.port">${__P(port,8099)}</stringProp>
          <stringProp name="HTTPSampler.protocol">http</stringProp>
          <stringProp name="HTTPSampler.path">/</stringProp>
          <stringProp name="HTTPSampler.method">GET</stringProp>
          <elementProp name="HTTPsampler.Arguments" elementType="Arguments"><collectionProp name="Arguments.arguments"/></elementProp>
        </HTTPSamplerProxy>
        <hashTree/>
      </hashTree>
    </hashTree>
  </hashTree>
</jmeterTestPlan>

The plan has 5 virtual users who each send 10 GET requests. Run JMeter in command line mode from the folder with the plan:

jmeter -n -t first-test.jmx -l results.jtl -e -o report

-n turns the window off, -t names the plan, -l writes every sample to a file, and -e -o builds an HTML report in the report folder. A good installation ends with a line like this one from our Java 21 run:

summary =     50 in 00:00:04 =   12.3/s Avg:     2 Min:     1 Max:    21 Err:     0 (0.00%)

Open report/index.html in a browser to view response times and throughput. To aim the plan at a test server of your own, add -Jhost= and -Jport=. To look inside the plan, open it in the window with jmeter -t first-test.jmx. Four larger plans with explanations are in our JMeter test plan examples.

JMeter Installation Errors and How to Fix Them

MessageCauseFix
Neither the JAVA_HOME nor the JRE_HOME environment variable is definedmacOS or Linux: the script found no JavaInstall a JDK, then run java -version
Not able to find Java executable or versionWindows: java is not on PATHAdd the JDK bin folder to PATH, open a new terminal
Java version ... is too low to run JMeterWindows: the first java on PATH is older than 8Install Java 17 or newer and move it up in PATH
/opt/.../bin/java: not found (or No such file or directory, if sh is bash)JAVA_HOME points to a folder that is goneCorrect or unset JAVA_HOME
Unable to access jarfile ...ApacheJMeter.jarYou unpacked the source archiveDownload a file from the Binaries block
command not found after jmeterThe bin folder is not on PATH, or this terminal has not read the changeAdd the folder, run . ~/.profile (Linux), or call the script by its full path
No X11 DISPLAY variable was setNo desktop on the machine, or a headless JavaUse jmeter -n, or install the full JDK on a desktop
Results file: ... is not emptyYou reused the -l file together with -e -oGive the run a new file name
Cannot write to ... as folder is not emptyThe -o folder holds an old reportGive the run a new folder

We reproduced every row on Linux except the two Windows ones, which come from the text of jmeter.bat. The X11 row is easy to misread. On a machine with a virtual display the window opened on Java 8 and 25 and failed on the headless OpenJDK 21 package with the same display.

After You Install JMeter: GUI, Heap and Plugins

Keep the window for building. The manual is strict about it: GUI mode is for creating and debugging scripts, and load tests must run in CLI mode. The best practices page adds that you should use as few listeners as possible.

Raise the heap before a real load test. JMeter starts with 1 GB (-Xms1g -Xmx1g). Create bin/setenv.sh with the line below, or setenv.bat with set HEAP=... on Windows, and JMeter reads it at each start:

export HEAP="-Xms2g -Xmx2g -XX:MaxMetaspaceSize=256m"

Add plugins last. Plugins Manager is one JAR file in lib/ext that installs the rest from a menu. Our list of the best JMeter plugins explains which ones are worth adding. Drivers such as JDBC go into lib, and only JMeter components and plugins belong in lib/ext.

Update in a new folder. Unpack the next version next to the old one, copy your user.properties, setenv file and extra JARs, and run the first test again. To uninstall, delete the folder and the PATH entry.

Run the Same JMX File in the PFLB Cloud

One laptop can simulate a limited number of users before its own CPU, memory or network becomes the bottleneck. JMeter can spread a test over several machines, and you then keep the same JMeter and Java versions on all of them. PFLB is the other route: our cloud platform imports JMeter scripts and runs them on load generators that you do not install. These are the steps from the PFLB documentation:

  1. Import the script. Click + New Test, then Import from JMeter, and upload the JMX file (up to 100 MB) with the files it uses, such as a CSV with test data. File paths inside the JMX can stay.
  2. Check the container. The platform creates a container where you review the files and thread groups. For jp@gc - Ultimate Thread Group, the type the docs recommend, you can edit each step of the load profile in the interface.
  3. Scale it. Copy the container to raise the load, add other scripts to the same test, and choose a region for each container.
  4. Set SLAs and run. Thresholds cover the test, a transaction, a request and system metrics. A debug run uses 1 virtual user per group and stops after 5 minutes or 10 iterations. During the run you watch Grafana dashboards, and afterwards PFLB can generate an AI report for a run.

Check three things before the import. Our first test aims at 127.0.0.1, which in the cloud would be the load generator itself. The docs list the JMeter properties that the platform supports, such as httpclient4.retrycount. They do not describe passing properties of your own, like the host and port this plan reads with -J, so write the address of a reachable test system you own inside ${__P(host,...)} and ${__P(port,...)} first. The docs also name the supported plugins and elements, including Custom Thread Groups, Random CSV Data Set and two WebSocket sampler sets. And if user counts, durations or timer values come from parameters such as ${users}, write explicit values instead. More about running scripts this way is on the JMeter load testing page, and Jenkins or GitLab CI can start the tests for you.

PFLB has tested systems since 2008: 150+ engineers, 300+ companies. If you want people to design the test and analyze the results, that is our performance testing services team.

Run Your JMX Beyond One Machine
Import the JMeter script and its data files, set the load, and follow the run in Grafana.

Install JMeter: FAQ

How do I install JMeter?

Install Java 17 or newer, download the binary zip or tgz from jmeter.apache.org, unpack it into a folder without spaces and start jmeter.bat (Windows) or jmeter (macOS, Linux) from the bin folder. On a Mac, brew install jmeter replaces these steps.

Which Java version does JMeter need?

JMeter 5.6.3 needs Java 8 or later, and the release notes recommend 17 or later. In our runs on Linux, a small command line test passed on Java 8, 11, 17, 21 and 25. Java 17 or 21 also prepares you for the next major release, which would require 17.

How to install Apache JMeter on Mac?

Run brew install jmeter, then jmeter. Homebrew installs OpenJDK 21 as a dependency. Without Homebrew, install a JDK, unpack the tgz from the Apache site and start bin/jmeter.

Is JMeter free or paid?

JMeter is open source under the Apache License 2.0, so you can download and use it without paying. The cost of a large test is in the machines that generate load and in the work on scripts.

What is the latest version of Apache JMeter?

Version 5.6.3. The Apache archive dates it 7 January 2024, and it was still the current release on the Apache download page on 30 November 2026.

Get Help With Your First Load Test

Installing JMeter is the easy part. Choosing the load model, preparing data and reading the results take more experience. If a release depends on that test, describe the system in the form: what it does, how much traffic you expect and what must not fail. PFLB engineers will look at it with you and suggest how to test it.