How to install Apache JMeter on Debian 8.6
To install apache jmeter on debian 8.6
Apache JMeter, is an open source application released by Apache for the purpose of load tesing. It also functions as a performance measuring and analyzing tool for web applications. JMeter supports variable parameterization, assertions (response validation), per-thread cookies, configuration variables and a variety of reports. This article explains about the installation procedure of Apache JMeter on Debian 8.6.
Installing 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, restart the Apache serveice as follows.
root@linuxhelp:~# service apache2 restart
The next thing to do is to update your apt source. Use the following command for the same.
root@linuxhelp:~# apt-get update
Ign http://dl.google.com stable InRelease
Get:1 http://dl.google.com stable Release.gpg [916 B]
Get:2 http://security.debian.org jessie/updates InRelease [63.1 kB]
Get:3 http://dl.google.com stable Release [1,189 B]
Get:4 http://ftp.debian.org jessie-updates InRelease [145 kB]
Get:5 http://dl.google.com stable/main amd64 Packages [1,440 B]
Get:6 http://security.debian.org jessie/updates/main Sources [174 kB]
Ign http://ftp.debian.org stable InRelease
Ign http://dl.google.com stable/main Translation-en_US
Ign http://dl.google.com stable/main Translation-en
Get:7 http://ftp.debian.org jessie-updates/main Sources [15.4 kB]
Get:8 http://ftp.debian.org jessie-updates/contrib Sources [32 B]
Get:9 http://ftp.debian.org jessie-updates/main amd64 Packages/DiffIndex [6,916 B]
Get:10 http://ftp.debian.org jessie-updates/contrib amd64 Packages [32 B]
Get:11 http://ftp.debian.org jessie-updates/contrib Translation-en [14 B]
Get:12 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [2,704 B]
Hit http://ftp.debian.org stable Release.gpg
Get:13 http://ftp.debian.org jessie-updates/main amd64 2016-11-30-2028.41.pdiff [530 B]
Get:14 http://ftp.debian.org jessie-updates/main amd64 2016-11-30-2028.41.pdiff [530 B]
Hit http://ftp.debian.org stable Release
Hit http://ftp.debian.org stable/main amd64 Packages
Get:15 http://security.debian.org jessie/updates/contrib Sources [1,439 B]
Get:16 http://security.debian.org jessie/updates/main amd64 Packages [335 kB]
Hit http://ftp.debian.org stable/contrib amd64 Packages
Hit http://ftp.debian.org stable/non-free amd64 Packages
Hit http://ftp.debian.org stable/contrib Translation-en
Hit http://ftp.debian.org stable/main Translation-en
Hit http://ftp.debian.org stable/non-free Translation-en
Get:17 http://security.debian.org jessie/updates/contrib amd64 Packages [2,506 B]
Get:18 http://security.debian.org jessie/updates/contrib Translation-en [1,211 B]
Get:19 http://security.debian.org jessie/updates/main Translation-en [178 kB]
Fetched 929 kB in 8s (112 kB/s)
Reading package lists... Done
The latest version of Apache JMeter is required. Use the wget command to download it.
root@linuxhelp:~# wget -c http://www-eu.apache.org/dist//jmeter/binaries/apache-jmeter-3.1.tgz
--2016-12-27 19:41:18-- http://www-eu.apache.org/dist//jmeter/binaries/apache-jmeter-3.1.tgz
Resolving www-eu.apache.org (www-eu.apache.org)... 88.198.26.2, 2a01:4f8:130:2192::2
Connecting to www-eu.apache.org (www-eu.apache.org)|88.198.26.2|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 47080967 (45M) [application/x-gzip]
Saving to: ‘ apache-jmeter-3.1.tgz’
apache-jmeter-3.1.t 100%[=====================> ] 44.90M 97.5KB/s in 6m 27s
2016-12-27 19:47:45 (119 KB/s) - ‘ apache-jmeter-3.1.tgz’ saved [47080967/47080967]
Once the download is done, extract the downloaded file by using tar command.
root@linuxhelp:~# tar -zxf apache-jmeter-3.1.tgz
Move to JMeter bin directory.
root@linuxhelp:~# cd apache-jmeter-3.1/bin/
And list the files for checking the JMeter files.
root@linuxhelp:~/apache-jmeter-3.1/bin# ls
ApacheJMeter.jar jmeter-n.cmd mirror-server.sh
BeanShellAssertion.bshrc jmeter-n-r.cmd reportgenerator.properties
BeanShellFunction.bshrc jmeter.properties report-template
BeanShellListeners.bshrc jmeter-server saveservice.properties
BeanShellSampler.bshrc jmeter-server.bat shutdown.cmd
examples jmeter.sh shutdown.sh
hc.parameters jmeter-t.cmd stoptest.cmd
heapdump.cmd jmeterw.cmd stoptest.sh
heapdump.sh krb5.conf system.properties
httpclient.parameters log4j.conf templates
jaas.conf logkit.xml upgrade.properties
jmeter mirror-server user.properties
jmeter.bat mirror-server.cmd
You can start the Apache JMeter application by using the following command.
root@linuxhelp:~/apache-jmeter-3.1/bin# ./jmeter
Now you can use Apache JMeter.
Comments ( 0 )
No comments available