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.
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.
[email protected]:~# 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.
[email protected]:~# 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)... 18.104.22.168, 22.214.171.124, 126.96.36.199, ... Connecting to www.gtlib.gatech.edu (www.gtlib.gatech.edu)|188.8.131.52|: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.
[email protected]:~# tar xf apache-jmeter-4.0.tgz
after extracting the apache jmeter archive, navigate to the bin directory of apache jmeter.
[email protected]:~# cd apache-jmeter-4.0/bin/ [email protected]:~/apache-jmeter-4.0/bin#
Now run the following script to install apache jmeter.
[email protected]:~/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.