Thursday 6 February 2014

JMETER Installation




1.   Installation

JMeter is an open source tool and can be freely downloaded from 


  1. Download the zip file.
  2. Extract it to a folder of your choice.
  3. For running the application, double-click on the jmeter.bat file.

Monday 27 August 2012

Basics of performance testing using JMeter


  • Basic performance terminologies and their relationship.
  • What is Jmeter?
  • Recording a web application using Jmeter.
  • Parameterization using Jmeter.
  • Analyzing performance results.
  • Recording Flex applications using Jmeter       

What is Latency? 

Latency is the delay incurred in communicating a message (the time the message spends “on the wire”).
 The word latent means inactive or dormant, so the processing of a user action is latent while it is travelling across a network.
 Changes in latency are typically unavoidable through changes to your code. Latency is a resource issue, which is affected by hardware adequacy and utilization.
 

Thursday 9 June 2011


  • Basic performance terminologies and their relationship.
  • What is Jmeter?
  • Recording a web application using Jmeter.
  • Parameterization using Jmeter.
  • Analyzing performance results.
  • Recording Flex applications using Jmeter       

What is Latency? 

Latency is the delay incurred in communicating a message (the time the message spends “on the wire”).
 The word latent means inactive or dormant, so the processing of a user action is latent while it is travelling across a network.
 Changes in latency are typically unavoidable through changes to your code. Latency is a resource issue, which is affected by hardware adequacy and utilization.
What is Processing Time?

  Processing time is the amount of time a system takes to process a given request, not including the time it takes the message to get from the user to the system or the time it takes to get from the system back to the user.
Processing time can be affected by changes to your code, changes to systems that your code depends on (e.g. databases), or improvements in hardware.


 
What is Response Time?

Response time is the total time it takes from when a user makes a request until they receive a response.
 
Response time can be affected by changes to the processing time of your system and by changes in latency, which occur due to changes in hardware resources or utilization.
What is the relationship between these terms?

Latency + Processing Time = Response Time
It is important in performance analysis to understand these different aspects of the system and know the key differences and the relationship between them. It may be useful to make a graph such as latency vs. response time, and it is very important to know the difference between the two.
What is Jmeter?
 
Jmeter is an Apache Jakarta project that can be     used as a load testing tool for analyzing and measuring the performance of a variety of services, with a focus on web applications.
Jmeter is a flexible tool that not only allows you to test the HTTP servers but also to load-test Web services.
Basic Arrangements in Jmeter
Start Jmeter with jmeter.bat on windows.
Right click on the “test plan” and add a new thread group: add -> thread group.
Right click on thread group “add -> sampler -> Http Request
Set the IP as “localhost” and port number as “8080” in the “HTTP Request”
Right click on the “Work bench” add “Http Proxy Server”.
Set the Target controller to “Test plan > Thread group” and Grouping to “Add separators between group”
Click the “Start” button 
Basic Arrangements in Browser 
Change the LAN settings to “Proxy server” with “localhost” and port number as ”8080” in the browser.
Navigate to different pages in the browser at the target web application.
 

Analyzing the JMeter Performance reports

Attributes considered for PERFORMANCE Testing :
CPU usage
Memory usage {Memory leakages, thread leakage}
All queues and IO waits
Bottlenecks {Memory, cache, process, processor, disk and network}
Network Usage {Bytes, packets, segments, frames received and sent per sec,   Bytes
Total/sec, Current Bandwidth Connection Failures, Connections Active, failures at
 network interface lever and protocol level}
Database Problem {Settings and configuration, Usage, Read/sec, Write/sec, any locking, queries, compilation error}

 Web server {request and response per seconds, services succeeded and failed, server problem if any}
Response Time
Throughput
Screen transition
Time {Session time, reboot time, printing time, transaction time, task execution time}
Hits per second, Request per seconds, Transaction per seconds
Performance measurement with number of users.
Performance measurement with other interacting application or task
 Most of the listeners perform several roles in addition to "listening" to the test results
 Listeners can use a lot of memory if there are a lot of samples. Most of the listeners currently keep a copy of every sample in their scope.
Graph Results :
The Graph Results listener generates a simple graph that plots all sample times
The throughput number represents the actual number of requests/minute the server handled
  
JMeter Graph Results

Data - plot the actual data values
Average - plot the Average
Median - plot the Median (midway value)
Deviation - plot the Standard Deviation(a measure of the variation)
Throughput - plot the number of samples per unit of time 

Aggregate Report
The aggregate report creates a table row for each differently named request in your test.
Once the test is done, the throughput is the actual through for the duration of the entire test.
The throughput is calculated from the point of view of the sampler target.

 
Analyzing the Results Using Aggregate report


Label - The label of the sample.
Samples - The number of samples with the same label
Average - The average time of a set of results
Median - The Median is the time in the middle of a set of results. 50% of the samples took no more than this time; the remainder took at least as long.
90% Line - 90% of the samples took no more than this time. The remaining samples at least as long as this. (90 th percentile)
Min - The shortest time for the samples
Max - The longest time for the samples
Error % - Percent of requests with errors
Throughput - the Throughput is measured in requests per second/minute/hour. The time unit is chosen so that the displayed rate is at least 1.0. When the throughput is saved to a CSV file, it is expressed in requests/second, i.e. 30.0 requests/minute is saved as 0.5.
Kb/sec - The throughput measured in Kilobytes per second
::Times are in milliseconds.