JMeter

Steps to Install JMeter

Step 1) Install Java

Because JMeter is pure Java desktop application, it requires a fully compliant JVM 6 or higher. You can download and install the latest version of Java SE Development Kit. Download Java Platform (JDK)

After installation is finished, you can use the following procedure to check whether Java JDK is installed successfully in your system

  • In Window/Linux, go to Terminal
  • Enter command java -version

If the Java runtime environment is installed successfully, you will see the output as the figure below

JMeter

If nothing displays, please re-install Java SE runtime environment

Step 2) Download

As of this writing, the latest version of JMeter is Apache JMeter 4.2. You can download it here But this tutorial demos installation of version 2.9, the install process remains the same.

Choose the Binaries file (either zip or tgz) to download as shown in the figure below

JMeter

Step 3) Installation

Installation of JMeter is extremely easy and simple. You simply unzip the zip/tar file into the directory where you want JMeter to be installed. There is no tedious installation screen to deal with! Simply unzip and you are done!

Once the unzipping is done installation directory structure should look like as figure below

JMeter

Given below is the description of the JMeter directories and its importance JMeter directory contains many files and directory

  • /bin: Contains JMeter script file for starting JMeter
  • /docs: JMeter documentation files
  • /extras: ant related extra files
  • /lib/: Contains the required Java library for JMeter
  • /lib/ext: contains the core jar files for JMeter and the protocols
  • /lib/junit: Junit library used for JMeter
  • /printable_docs:

Step 4) Launch JMeter

You can start JMeter in 3 modes

  • GUI Mode
  • Server Mode
  • Command Line Mode

Start JMeter in GUI Mode

If you are using Window, just run the file /bin/jmeter.bat to start JMeter in GUI mode as shown below

JMeter

The following figure annotates the various components in the JMeter GUI

JMeter

How to run JMeter in Non-GUI Mode

Start JMeter in Server Mode

Server mode is used for distributed testing. This Testing works as a client-server model. In this model, JMeter runs on a server computer in server mode. On a client computer, JMeter runs in GUI mode.

To start the server mode, you run the bat file bin\jmeter-server.bat as below figure

JMeter

Start JMeter in command line mode

JMeter in GUI mode consumes much computer memory. For saving the resource, you may choose to run JMeter without the GUI. To do so, use the following command options

JMeter

This is a command line example

$jmeter -n -t testPlan.jmx - l log.jtl -H 127.0.0.1 -P 8000
Jmeter - CLI

Pages: 1 2

Leave a Reply

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