How to install Apache JMeter in CentOS 7

To install Apache JMeter in CentOS 7

The Apache JMeter is open source software application completely based on Java. JMeter is an application designed to load test functional behavior and measure performance of a system. Although it was initially designed for testing Web Applications, it has has since expanded to other test functions. It is simple to install Apache JMeter, and this article sheds light on the installation of Apache JMeter on CentOS 7.

Installing Apache JMeter

Before installing JMeter it is essential to check the presence of Java in your machine as JMeter is a Java based application. If it isn' t installed, use the following command to do the same.

root@linuxhelp:~# java -version
java version " 1.7.0_111" 
OpenJDK Runtime Environment (IcedTea 2.6.7) (7u111-2.6.7-2~deb8u1)
OpenJDK 64-Bit Server VM (build 24.111-b01, mixed mode)

Once Java is installed, go to the Apache JMeter’ s download page and download the latest stable version of Apache JMeter. Use the following command.

[root@linuxhelp1 ~]# wget http://www.gtlib.gatech.edu/pub/apache//jmeter/binaries/apache-jmeter-3.1.tgz
--2016-12-23 15:23:52--  http://www.gtlib.gatech.edu/pub/apache//jmeter/binaries/apache-jmeter-3.1.tgz
Resolving www.gtlib.gatech.edu (www.gtlib.gatech.edu)... 128.61.111.7, 128.61.111.9, 128.61.111.8, ...
Connecting to www.gtlib.gatech.edu (www.gtlib.gatech.edu)|128.61.111.7|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 47080967 (45M) [application/x-gzip]
Saving to: ‘ apache-jmeter-3.1.tgz’ 

100%[========================================================> ] 47,080,967  13.6KB/s   in 48m 22s

2016-12-23 16:12:15 (15.8 KB/s) - ‘ apache-jmeter-3.1.tgz’  saved [47080967/47080967]

Once the file is downloaded, extract its content with the help of the following command.

[root@linuxhelp1 ~]# tar -xf apache-jmeter-3.1.tgz

Change directory to apache-jmeterxxx > bin by running the following command.

[root@linuxhelp1 ~]# cd apache-jmeter-3.1/bin/


Now is the time to install JMeter with the help of the following command.

[root@linuxhelp1 bin]# ./jmeter
Writing log file to: /root/apache-jmeter-3.1/bin/jmeter.log
================================================================================
Don' t use GUI mode for load testing, only for Test creation and Test debugging !
For load testing, use NON GUI Mode &  adapt Java Heap to your test requirements
================================================================================
Dec 23, 2016 4:21:14 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.

Once Apache JMeter is launched, you can use it for testing.

Wasn' t the installation quite simple? Apache JMeter may be used to test performance both on static and dynamic resources. JMeter can be used to simulate a heavy load on a server, group of servers, network or object to test its strength or to analyze overall performance under different load types.

Tag : CentOS Jmeter
FAQ
Q
I have already set the cron job for my server. But every time it will ask the credential of SSH user?
A
Need to set automatic sync with SSH passwordless login as shown as a document.
Q
How to set synchronize data updating for both servers?
A
To set cron setup for rsync the data from the main server to the mirror server.
Q
What is the purpose of need two apache server for same website ?
A
if the main web server fails, the backup server will take over it in order to reduce downtime of the website.
Q
How to generate the mirror of serevr ?
A
Transferring the data by compression with help of using rsync command
Q
How to access the SSH protocol in Ubuntu?
A
Before accessing the SSH protocol, need to install OpenSSH-server package on Ubuntu system