How to install apache jmeter on ubuntu 18.04

To install Apache JMeter on Ubuntu 18.04
The Apache JMeter application is open source software which is used for performing load test and to measure the performance of the system. Although it was initially designed for testing Web Applications, it is now capable of performing other test functions too. The method to install Apache JMeter on Ubuntu 18.04 is covered here.

Installation
Apache JMeter requires java to be pre-installed on the machine so, Before you install apache jmeter make sure you have java installed on your machine and you can verify that by using the following command.

root@linuxhelp:~# java --version
java 9.0.4
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)

After installing java Download the latest stable version of Apache JMeter from its official site through wget command from the terminal.

root@linuxhelp:~# wget http://www.gtlib.gatech.edu/pub/apache/jmeter/binaries/apache-jmeter-4.0.tgz
--2018-04-16 19:29:20--  http://www.gtlib.gatech.edu/pub/apache/jmeter/binaries/apache-jmeter-4.0.tgz
Resolving www.gtlib.gatech.edu (www.gtlib.gatech.edu)... 128.61.111.11, 128.61.111.7, 128.61.111.10, ...
Connecting to www.gtlib.gatech.edu (www.gtlib.gatech.edu)|128.61.111.11|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 48520962 (46M) [application/x-gzip]
Saving to: ‘ apache-jmeter-4.0.tgz’ 

apache-jmeter-4.0.tgz          100%[====================================================> ]  46.27M   585KB/s    in 2m 10s  

2018-04-16 19:31:30 (366 KB/s) - ‘ apache-jmeter-4.0.tgz’  saved [48520962/48520962]

Now, extract the downloaded JMeter file.

root@linuxhelp:~# tar xf apache-jmeter-4.0.tgz

after extracting the apache jmeter archive, navigate to the bin directory of apache jmeter.

root@linuxhelp:~# cd apache-jmeter-4.0/bin/
root@linuxhelp:~/apache-jmeter-4.0/bin#

Now run the following script to install apache jmeter.

 root@linuxhelp:~/apache-jmeter-4.0/bin# sh jmeter.sh 

================================================================================
Don' t use GUI mode for load testing !, only for Test creation and Test debugging.
For load testing, use NON GUI Mode:
   jmeter -n -t [jmx file] -l [results file] -e -o [Path to web report folder]
&  increase Java Heap to meet your test requirements:
   Modify current env variable HEAP=" -Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m"  in the jmeter batch file
Check : https://jmeter.apache.org/usermanual/best-practices.html
================================================================================

The following screen will appear, which is apache-jmeter 4.0 .

With this, the method to install apache jmeter on ubuntu 18.04 comes to an end.

FAQ
Q
What is the default Administration credential for "Apache jmeterI"?
A
The default credential of Administration console for the "ApacheGUI",

username: "admin"

password: "admin"
Q
What is the alternative tool available for the "ApacheGUi"?
A
An alternative is given below for "ApacheGUI",

1. Webmin

2. UwAmp

3. ServerPilot.io

4. Sentora
Q
How to check the version of "Apache" web server on the system?
A
You can use execute the following command on the terminal to get a version of "Apache" web server on the system. For syntax: "apache2 -V"
Q
What is the minimum requirement to install "Apache GUI" on the system?
A
Here you can see the pre-requirement to install "ApacheGUI",

1. Install and configure "Java" on the system,

2. Install and configure "LAMP" setup on the system,

3. Then you can install "ApacheGUI" on your system.
Q
while execute jmeter . It will not run and also didn’t open a application
A
To check jmeter file is in execute permission