In previous article we have learned about basic “Introduction to Apache JMeter” & what all features to be supported in Apache JMeter. In today’s article, we will get to know about how to download and install JMeter on local Windows Machine.
JMeter is a pure Java desktop application, that’s why it runs on any system which supports Java. So before installing JMeter, first get to know the basic requirement of JMeter to run on local windows machine.
JMeter requirements according to the Operating System
Before installing JMeter, your system should fulfill these requirements,
Operating system | Window XP | Window 7 | Free BSD 9.0 | Linux 2.4, 2.6, 3.1 | Mac OS |
Java Virtual Machine | Sun JDK6, Sun JDK 7 | Sun JDK 5, 6, 7. | Open JDK 6 | Sun JDK 5, 6, 7 and Open JDK 6 | JDK6 |
Architecture | 32/64 bits | 32 bits | amd64 | i386, amd64 |
Check for Java on Windows
In this tutorial you will get to know how to download and install JMeter on Window operating. These are the steps involved in downloading and installing JMeter,
Before installing JMeter, just check your system is supporting Java or not, if not then install it because JMeter is a pure Java desktop application. You can verify that java is already installed in your windows machine or not using bellow given command in your command prompt. You can use the following procedure to check whether Java JDK is installed successfully in your system.
In Window/Linux – Just go to Terminal or click on start and type “command prompt”
Open the “command prompt” and type command “java –version”.
If Java run-time environment is installed successfully, you will see the output as figure below,
If Java run-time environment is not installed successfully, you will see the output as figure below,
You can get the latest version of Java SE Development Kit in the site: http://www.oracle.com/technetwork/java/javase/downloads/index.html, using this site download and install the latest version of Java SE Development Kit. After installation, just check java is installed successfully or not using command “Java – Version” in the command prompt.
Download and installation process of JMeter
Step 1: Download process of v2.11 JMeter
After checking Java, just download JMeter through the site: Download Latest JMeter
The latest version of JMeter is v2.11, go to the site and choose the Binaries file (either zip or tgz) to download as shown in figure below,
Step 2: Installation process of v2.11 JMeter
It is very simple and easy to install JMeter, just download the “.zip” or ”.tgz” file and unzip JMeter file into the directory where you want to install JMeter. A very simple and easy installation process and it’s done. After unzip process is done, the directory will look like the given below figure,
Files and directory which generate after installation of JMeter are given below,
/bin: Containsscript file which comes after installation of JMeter to start JMeter
/docs: Contains JMeter documentation files
/extras: ant connectedadditional files
/lib/: Contains Java library files of JMeter
/lib/ext: Contains protocols and core jar files for JMeter
/lib/junit: Contains JUnit library files of JMeter
To check, it got installed or not on Windows, go to the directory where did you unzip the .zip of .tgz file, open Apache-JMeter-2.11 folder, click on bin folder, and then click on JMeter.bat file will open v2.11 JMeter application. In UNIX machine type ./bin/JMeter on command prompt to open JMeter.
Start JMeter in three modes
You can open JMeter using 3 modes – GUI Mode, Server Mode and Command Line Mode
1) In GUI Mode: JMeter runs on client computer
In Windows – First, open Apache-JMeter-2.11 folder, click on bin folder, and then click on JMeter.bat file will open v2.11 JMeter application. Shown in figure below,
Once you click on JMeter.bat, it opens JMeter – 2.11, shown in figure below,
2) In Server Mode: JMeter runs on server computer:
It is basically a client-server model distributed testing mode. In this process, JMeter runs on server computer as a server component. To start JMeter in server mode, run the bat file: bin\JMeter-server.bat, shown in the figure below,
3) JMeter in Command line mode:
If we open JMeter in GUI mode, it takes more computer memory to open it. If you don’t want your computer should consume more resources to run JMeter, open JMeter in command line mode.
Type this command in command line: “JMeter -n -t testPlan.jmx – l log.jtl -H 127.0.0.1 -P 8000”to open JMeter, shown in the figure below,
Where,
JMeter–n: Shows that JMeter will run on command line mode
-t testPlan.jmx: Name of file contains the Test plan
– llog.jtl: Shows the log files which contains the test result
-H 127.0.0.1 -P 8000: Proxy server host name and port
Conclusion
In this article we have learn about how to download & install JMeter. Also we have learn about three different mode to run JMeter. In next article we will cover “Elements of JMeter“.
FULL LIST OF JMETER TUTORIAL SERIES
Happy Testing!!!
If you are not regular reader of this website then highly recommends you to sign up for our free email newsletter!! Sign up just providing your email address below:
- Tutorial 1: Introduction to Apache JMeter
- Elements of JMeter
- How to do Performance Testing using JMeter? – JMeter Tutorials Series Day 5
- Assertions in JMeter – JMeter Tutorials Series Day 7
- Recording using HTTP Proxy Server in JMeter – Performance Testing Tools
- Uses of Processor in JMeter – JMeter Tutorials Series Day 9
- JMeter’s Distributed Testing – JMeter Tutorials Series Day 10
- Uses of Controllers in JMeter – JMeter Tutorials Series Day 8
- Big Data: From Testing Perspective
- How to create web performance test with VSTS?
4 thoughts on “JMeter Installation Guide”
I have windows XP.I have checked java on my machine .Its present on my machine.But as mentioned above i opened jmeter.bat file but nothing is happening.None of above mentioned window opened.Please help me.
Thanks for sharing this JMeter article series post.
@Vinayak – Me too using windows XP however I am successfully able to open JMeter using above steps. I guess you have to check the configuration on your machine.
Thanks. Really its very useful as I am working on performace testing and want to learn jmeter.
Hopefully this gonna help me lot to learn the JMeter tool. Thanks, looking forward to see a next article.
Hi,
I have installed J meter 4.0 version my bin folder doesn’t have the .bat file.
Then i have set the Jmeter_Home path @ variable (the installed path). and my java version is (java version “1.8.0_144”
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode))
Thanks in advance.