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.
Comments ( 0 )
No comments available