Install Apache JMeter in macOS

Apache JMeter is a load testing tool that can be used for measuring and analysing the performance of various services.

Prerequisitories

Inorder to install JMeter in macOS, you should have the java installed in your machine. To test if Java is installed or not, run the following command.

java -version

You will get a result like this if java is installed.

java version “1.8.0_111”
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)

Follow this article to know how to install java in macOS.

Once java is installed, download JMeter to your local machine. I’m gonna use my terminal to download JMeter. The current latest version is 5.1.1.

wget -O apache-jmeter.zip http://apachemirror.wuchna.com//jmeter/binaries/apache-jmeter-5.1.1.zip

Unzip the file

unzip apache-jmeter.zip -d /opt/

You can also download the latest version of Apache JMeter from the official website. Download the binary file in zip format and extract it.

Once you have extracted the zip file, enter into bin directory inside the extracted directory.

cd /opt/apache-jmeter/bin/

You can find a shell script named “jmeter.sh” inside bin. Make sure it has executable permission.

Run jmeter.sh to start jmeter.

sh jmeter.sh

JMeter UI will pop up in few seconds.

Post navigation

Alvin Jaison

Myself Alvin Jaison. I'm a DevOps Engineer by Profession; A Mountaineer by Passion. I started this website to share DevOps related posts. Post your suggestions as a comment. You can reach me @ alvinjaison@outlook.com

Leave a Reply

Your email address will not be published. Required fields are marked *