Installation and configuration for Apache Jmeter
Posted By : Ravindra Jha | 03-Mar-2014
Load Testing Using Apache Jmeter
This blog will discuss the tools and its configuration for performance analysis and Load Testing for your application.
What is Load Testing?
Load Testing is test for an application under the immense load and analyzing its response time, number of hits etc.
Tool used for Load testing is Jmeter, which is the java desktop application use to exercise load test.It was developed by apache community.It is multithreading extensible application can run concurrent sampler request and different protocols likes- HTTP,HTTPS,FTP etc.
Installing Jmeter for Ubuntu-12.04 LTS:-
-
Go to jmeter website
-
From binary distribution section download the latest version(2.11) of jmeter and copy it to the /usr/local/
$ cp Downloads/apache-jmeter-2.11.tar /usr/local
-
Change the directory to /usr/local
$ cd /usr/local
-
Extract it .
$usr/local>tar apache-jmeter-2.11.tar .
-
From the bin run the script jmeter.sh,it will start Jmeter.
$usr/local/apache-jmeter-2.11> sudo sh /bin/jmeter.sh
Jmeter Test Plan and Its Elements for load testing:-
1.Test Plan is the script(XML) contains various elements configuration
2.Workbench is jmeter node use to temporarily store jmeter test plan elements.
3.Thread Group is are the thread represents the users. It's properties are-
-
Action to be taken after Sampler Error
>Continue
>Stop Thread
>Stop Test
-
Number of Thread provides number of user visiting.
-
Ramp up time represents the gap between two thread(user) activation
-
Loop count defines the number of times it executes the test
-
Schedular set the time of execution of test.
4.Controller is the buisiness part of the test plan.It is of two type
>Sampler
>Logic Controller
5.Sampler enables to hit a specific type of request to the server for a resource
-
Logic controller controles the processing order of sampler.It has various types like Loop, If, Recording etc..
-
Listner is the elements gives results of the test in various format like CSV, XML, Tree, Graph etc.
-
Timer sets the time between two request for a thread for example constant timer add time in milisecond.
-
Assertions allows to add validation on response data.
Thanks.
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Ravindra Jha
Ravindra is a seasoned Java and Grails lead developer with excellent experience in deployment , monitoring , optimisation of web applications for scalability and performance on Amazon EC2 and other Amazon Web Services.