JMeter Installation And Setup
How To Install And Setup JMeter ?
As JMeter is a Java based software so, having JDK in the system is a prerequisite.
Prerequisite :
-
Install and setup java(jdk)
-
If you've already installed and configured java then, to verify the installation :
-
Open cmd, and run command : java --version
-
It will display the version and some other details about JDK.
-
-
In case, if java haven't installed and configured then follow below steps to setup java first :
-
Download .zip file for JDK from https://www.oracle.com/java/technologies/downloads/#jdk18-windows
-
Extract the .zip file at your preferred location.
-
Copy the full path to the JDK.
-
In my case it's 'C:\Java\jdk'.
-
Now on windows, go to the Environment variables and under the System variables, click on New that will pop the input fields.
-
Enter Variable name as 'JAVA_HOME' and enter the copied jdk path at Variable value.
-
Click on OK to save all the changes.
-
-
Edit path variable :
-
Again in System variables, edit path variable as '%JAVA_HOME%\bin' and save all the changes.
-
To verify the java installation, run command 'java --version' on the terminal.
-
Download JMeter on Windows/Mac/Linux
The installaion of JMeter is so easy, it's just ready-to-use application. There's no requirements for any kind of configuration.
-
Download JMeter .zip file from https://jmeter.apache.org/download_jmeter.cgi .
-
Extract the .zip file at your preferred location. I've extracted it at location 'C:\Users\softwares'.
-
The JMeter directory structure should like this :
-
apache-jmeter-5.5\bin
-
apache-jmeter-5.5\docs
-
apache-jmeter-5.5\extras
-
apache-jmeter-5.5\lib
-
apache-jmeter-5.5\licenses
-
apache-jmeter-5.5\printable_docs
-
Run JMeter on Windows/Mac/Linux
After downloading JMeter, navigate to the bin directory to run JMeter GUI. In my case, the directory is 'C:\Users\softwares\apache-jmeter-5.5\bin'.
-
For Windows :
-
Run jmeter.bat (jmeter Windows Batch FIle) file as administrator(recommended).
-
Or open terminal (as administrator recommended), navigate to the jmeter bin directory using cd command and type 'jmeter', then execute the command.
-
-
For MAC/Linux :
-
Run jmeter.sh (jmeter Shell Script) file as administrator(recommended).
-
-
After a short pause, jmeter Swing GUI application will be appeared as seen in the following screenshot :
-
This is the main/default page of the application.
Refer next page Build JMeter Test Plan
![system variable.png](https://static.wixstatic.com/media/3bc9da_846e416cd8594187b3645c62a4bdceb9~mv2.png/v1/fill/w_389,h_186,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/system%20variable.png)
![java version.png](https://static.wixstatic.com/media/3bc9da_baa9999b6c2449d9ae55513f2296c94e~mv2.png/v1/fill/w_574,h_255,al_c,q_85,enc_avif,quality_auto/java%20version.png)
![jdk path.png](https://static.wixstatic.com/media/3bc9da_e5e54a0bcb6441699aa5c4261d637cd0~mv2.png/v1/fill/w_461,h_126,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/jdk%20path.png)
![path variable.png](https://static.wixstatic.com/media/3bc9da_8b5b94dda686478092495058f7ea06fe~mv2.png/v1/fill/w_420,h_211,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/path%20variable.png)
![jdk bin.png](https://static.wixstatic.com/media/3bc9da_c1f7683dd4de43f8b87a520c2b26920e~mv2.png/v1/fill/w_369,h_350,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/jdk%20bin.png)
![download jmeter.png](https://static.wixstatic.com/media/3bc9da_9d163dddd636408e97062054a4cc6bad~mv2.png/v1/fill/w_836,h_425,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/download%20jmeter.png)
![jmeter gui.png](https://static.wixstatic.com/media/3bc9da_c7b5c177b9754ee1ab5ee9f921f6fdcf~mv2.png/v1/fill/w_798,h_422,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/jmeter%20gui.png)