Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

jMeter is an Open Source testing software. It is 100% pure Java application for load and performance testing. jMeter is designed to cover categories of tests like load, functional, performance, regression, etc., and it requires JDK 5 or higher. the purpose of this page is to give basic understanding of the Tool and to see implantation on ONAP SDC Components.

...

In addition i will show the ability to generate HTML reports using the CSV file created after the test finished.


Important Links:

Jmeter


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. 


Apache_JMeterImage Added


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.



Take a look at the following figure that depicts how JMeter works −

...