How to Install Apache JMeter on Ubuntu 20.04

Install Apache JMeter on Ubuntu 20.04

In this article, we will have explained the necessary steps to install and configure Apache JMeter on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Apache JMeter is the best tool developed by Stefano Mazzocchi of Apache Software Foundation to perform this type of test and check out the performance of any website. JMeter can be used for simulating loads that are variable or heavy. The simulation may be conducted on single or multiple servers. It may alternately be conducted over networks or objects testing a system’s strength. JMeter simulates a group of users. They send requests to a server or network. The returning statistics are shared back with a user through visual diagrams. JMeter also offers support for browser plug-ins. Apache JMeter available for Linux, macOS, and Windows.

Install Apache JMeter on Ubuntu 20.04

Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.

sudo apt update
sudo apt upgrade

Step 2. Install Java.

Apache JMeter is a Java-based application so Java must be installed in your system. Run the following command to install Java:

sudo apt install default-jre-headless default-jdk-headless

Check your Java version:

java -version

Step 3. Install Apache JMeter on the Ubuntu system.

Now download Apache JMeter from its official website:

wget https://downloads.apache.org//jmeter/binaries/apache-jmeter-5.4.1.zip
tar xvf apache-jmeter-5.4.1.tgz

Next, move the JMeter directory to /opt/, which is for third-party applications:

sudo mv apache-jmeter-5.4.1 /opt/apache-jmeter

Now, start the JMeter application with the following command:

/opt/apache-jmeter/bin/jmeter.sh

Install Apache JMeter on Ubuntu 20.04

That’s all you need to do to install Apache JMeter on Ubuntu 20.04 LTS Focal Fossa. I hope you find this quick tip helpful. For further reading on Install Apache JMeter, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.