Install JMeter and check the version

JMeter is a Java program: one archive, a folder of libraries and a launcher script, with the JDK it needs installed once for every other Java program on the machine. This lesson says which JDK that is, links the install pages for Linux and Windows, and reads the version command line by line. The download itself needs a network, so it is shown as the steps a reader runs on their own machine.

The JDK

JMeter 5.6.3 runs on any Java 8 or newer; this course runs it on the JDK 21 of the image, and a plan written for one of them runs on the other. The command that proves the JDK is the one every Java program answers:

java -version

openjdk version "21.0.13.1" 2026-11-17
OpenJDK Runtime Environment (build 21.0.13.1+2-alpine-r0)
OpenJDK 64-Bit Server VM (build 21.0.13.1+2-alpine-r0, mixed mode, sharing)

The install

On Linux the package is the binary archive: unpack it outside a folder with a space in its name, put bin on the PATH, and a terminal finds jmeter from anywhere. The whole sequence, with the paths of this site's Linux page, is:

wget https://dlcdn.apache.org/jmeter/binaries/apache-jmeter-5.6.3.tgz

tar -xzf apache-jmeter-5.6.3.tgz
sudo mv apache-jmeter-5.6.3 /opt/jmeter
export PATH="$PATH:/opt/jmeter/bin"

The wget line is marked as not run in this environment: the container has no network, and so are the three lines after it: this image already has the archive unpacked in /opt/jmeter, and a page does not unpack it twice. The two system pages carry the same steps with the paths of each system:

Where it is in this image

In this container the archive is unpacked in /opt/jmeter and the launcher is already on the PATH:

which jmeter

/opt/jmeter/bin/jmeter

ls /opt/jmeter

LICENSE
NOTICE
README.md
bin
docs
extras
lib
licenses
printable_docs

jmeter --version

The version command prints the banner, the number and the copyright. The first four lines of a fresh shell are log4j warnings this build prints before any work — the same four appear before every run in the course, and the output blocks leave them out.

jmeter --version

    _    ____   _    ____ _   _ _____       _ __  __ _____ _____ _____ ____
   / \  |  _ \ / \  / ___| | | | ____|     | |  \/  | ____|_   _| ____|  _ \
  / _ \ | |_) / _ \| |   | |_| |  _|    _  | | |\/| |  _|   | | |  _| | |_) |
 / ___ \|  __/ ___ \ |___|  _  | |___  | |_| | |  | | |___  | | | |___|  _ <
/_/   \_\_| /_/   \_\____|_| |_|_____|  \___/|_|  |_|_____| |_| |_____|_| \_\ 5.6.3

Copyright (c) 1999-2024 The Apache Software Foundation

The Groovy JMeter carries

A JSR223 element can be written in Groovy, and JMeter does not borrow the Groovy of the machine: it carries its own set of jars under lib. This matters in the scripting chapter, where a script runs on Groovy 3.0.20 and not on the 5.0.8 that groovy runs on the command line.

ls /opt/jmeter/lib | grep -i groovy

groovy-3.0.20.jar
groovy-datetime-3.0.20.jar
groovy-dateutil-3.0.20.jar
groovy-jmx-3.0.20.jar
groovy-json-3.0.20.jar
groovy-jsr223-3.0.20.jar
groovy-sql-3.0.20.jar
groovy-templates-3.0.20.jar
groovy-xml-3.0.20.jar

The window this image cannot open

JMeter's GUI is a Swing program, and a container without a display cannot open one. The course does not need it: a plan is a file. The next lessons build plans as text and run them with -n; the GUI lesson shows what the panels hold as steps.

Related

Article author: Arthur Isaev