Creating a performance test using JMeter
In this section, we will learn how to create a simple performance test using the JMeter tool. The steps mentioned should be performed on your local machine. The following steps are performed on a machine with Ubuntu 16.04.
Installing Java
Follow the given steps to install Java:
- Update the package index:
sudo apt-get update
- Next, install Java. The following command will install the JRE:
sudo apt-get install default-jre
- To set the
JAVA_HOME
environment variable, first get the Java installation location. Do this by executing the following command:
sudo update-alternatives --config java
- Copy the resultant path and update the
JAVA_HOME
variable inside the/etc/environment
file.
Installing Apache JMeter
Follow the given steps to install Apache JMeter:
- Move to the
/tmp
directory:
cd /tmp
- Download
apache-jmeter-3.1.tgz
, or whichever is the latest stable version, from http://jmeter.apache.org/download_jmeter.cgi:
wget https://archive.apache.org/dist/jmeter/binaries/apache...