SlideShare a Scribd company logo
J Meter
• The Apache JMeterTM is pure Java open source software.
• It was first developed by Stefano Mazzocchi of the Apache Software
Foundation.
• It was designed to load test functional behavior and measure
performance.
• You can use JMeter to analyze and measure the performance of web
application or a variety of services.
What is Performance Testing
• Performance Testing is defined as a type of software testing to
ensure software applications will perform well under their expected
workload.
• The focus of Performance Testing is checking a software program's
• Speed - Determines whether the application responds quickly
• Scalability - Determines maximum user load the software application
can handle.
• Stability - Determines if the application is stable under varying loads
Jmeter Elements
• The different components of JMeter are called Elements. Each
Element is designed for a specific purpose.
• The figure below gives some common elements in JMeter.
Jmeter Elements
• There are 4 types of elements
• Thread Groups
• Samplers
• Listeners
• Configuration
Thread Groups
• Thread Groups is a collection of Threads. Each thread represents one
user using the application under test. Basically, each Thread simulates
one real user request to the server.
• The controls for a thread group allow you to Set the number of
threads for each group.
• For example, if you set the number of threads as 100; JMeter will
create and simulate 100 user requests to the server under test
Cont
Samplers
• As we know already that JMeter supports testing HTTP, FTP, JDBC and
many other protocols.
• We already know that Thread Groups simulate user request to the
server
• But how does a Thread Group know which type of requests (HTTP,
FTP etc.) it needs to make?
• The answer is Samplers
• The user request could be FTP Request, HTTP Request, JDBC
Request...Etc.
Cont
Samplers
• Here are some requests that J Meter can handle:
FTP request:
• Let's imagine you want to performance test an FTP server. You can
use an FTP request sampler in JMeter to do this task. This controller
lets you send an FTP "download file" or "upload file" request to an
FTP server.
Samplers
• HTTP request:
• This sampler lets you send an HTTP/HTTPS request to a web server.
• Consider the example below. JMeter sends an HTTP request to
Google website and retrieve HTML files or image from this website.
Samplers
• JDBC request:
• This sampler lets you execute Database Performance Testing. It sends
a JDBC Request (an SQL query) to a database.
• For example, a database server has a field test_result stored in a table
name test_tbl. You want to query this data from the database server;
you can configure JMeter to send a SQL query to this server to
retrieve data.
Samplers
Samplers
• SMTP Sampler:
• If you want to test a mail server, you can use SMTP sampler. This
sampler is used to send email messages using the SMTP protocol.
Listeners
• Listeners: shows the results of the test execution. They can show
results in a different format such as a tree, table, graph or log file.
Listensers
• View Result Tree show results of the user request in basic HTML
format
Listensers
• Log show summary of a test results in the text file.
Configuration Elements
• set up defaults and variables for later use by samplers.
• The figure below shows some commonly used configuration elements
in JMeter
Configuration Elements
• Suppose you want to test a website for 100 users signing-in with
different credentials. You do not need to record the script 100 times!
You can parameterize the script to enter different login credentials.
• This login information (e.g. Username, password) could be stored in a
text file. JMeter has an element that allows you to read different
parameters from that text file.
• It is "CSV Data Set Config", which is used to read lines from a file, and
split them into variables.
Configuration Elements
• This is an example of CSV Data. It's a text file which contains user and
password to login your target website.
Configuration Elements
• HTTP Cookie Manager
• You used your browser (Firefox, IE...Etc) to browse www.google.com
• You log in with your user and password.
• Your username and password will be stored in your computer as cookies.
• Next time, when you visit www.google.com, you don't need to do log in
again because your browser will use your cookies as user data to log in.
• HTTP Cookie Manager also has the same feature as a web browser. If you
have an HTTP Request and the response contains a cookie, the Cookie
Manager automatically stores that cookie and will use it for all future
requests to that particular website.
Configuration Elements
HTTP request default
• This element lets you set default values that your HTTP Request
controllers use.
• For example,
• You are sending 100 HTTP requests to the server google.com
• You would have to manually enter server name = google.com for all
these 100 requests
• Instead, you could add a single HTTP request defaults with the
"Server Name or IP" field = google.com
• No need to type 100 times!
Configuration Elements
Configuration Elements
Login Config Element
• The Login Config Element lets you add or override username and
password settings in samplers.
• For example, you want to simulate one user login to
website www.facebook.com with user and password. You can use the
Login Config Element to add this user and password setting in a user
request
Login Config VS CSV Data Config
Login Config Element CSV Data Config
Used to simulate one user login Used to simulate multiple user login
Suitable for login parameter only (user and
password)
Suitable for large numbers of parameters
Jmeter Timers
• By default, JMeter sends the request without pausing between each
request. In that case, JMeter could overwhelm your test server by
making too many requests in a short amount of times.
• Let imagine that you send thousands request to a web server under
test in a few seconds. This is what happens!
• Timers allow JMeter to delay between each request which a thread
makes. A timer can solve the server overload problem.
• Also, in real life visitors do not arrive at a website all at the same
time, but at different time intervals. So Timer will help mimic the
real-time behavior.
Timers
Constant Timer:
• Constant timer delays each user request for the same amount of
time.
Gaussian Random Timer:
Gaussian random timer delays each user request for a random amount
of time.
J meter
J meter
J meter

More Related Content

PPTX
What Is JMeter?
PPTX
Basic of jMeter
PPTX
J meter introduction
PPTX
Performance testing using Jmeter for apps which needs authentication
PDF
Learning j meter in 60 minutes
PDF
12 Steps to API Load Testing with Apache JMeter
PDF
PPTX
JMeter_ Cubet Seminar ppt
What Is JMeter?
Basic of jMeter
J meter introduction
Performance testing using Jmeter for apps which needs authentication
Learning j meter in 60 minutes
12 Steps to API Load Testing with Apache JMeter
JMeter_ Cubet Seminar ppt

What's hot (20)

ODP
Soft Test Ireland - Introduction to Jakarta Jmeter - Philip Bannon
PPTX
Performance testing with Apache JMeter
PDF
Introduction to jmeter
PPT
JMeter & ColdFusion
PDF
Server Performance by Tonny
PPTX
Load testing jmeter
PPTX
JMeter workshop
PPT
Load Test Drupal Site Using JMeter and Amazon AWS
PDF
Load Testing & Apache JMeter
PPTX
How to Analyze Reports in Jmeter
PPTX
Scalable load testing using jmeter in cloud
PPT
Jmeter From Scratch
PDF
JMeter - Performance testing your webapp
PPTX
Testing Soap/Rest Web Services with JMeter
PPT
Performance testing jmeter
PPTX
Jmeter introduction
PPTX
JMeter Post-Processors
PPTX
J Meter Intro
PPT
Performance Testing With Jmeter
PPTX
Load Testing and JMeter Presentation
Soft Test Ireland - Introduction to Jakarta Jmeter - Philip Bannon
Performance testing with Apache JMeter
Introduction to jmeter
JMeter & ColdFusion
Server Performance by Tonny
Load testing jmeter
JMeter workshop
Load Test Drupal Site Using JMeter and Amazon AWS
Load Testing & Apache JMeter
How to Analyze Reports in Jmeter
Scalable load testing using jmeter in cloud
Jmeter From Scratch
JMeter - Performance testing your webapp
Testing Soap/Rest Web Services with JMeter
Performance testing jmeter
Jmeter introduction
JMeter Post-Processors
J Meter Intro
Performance Testing With Jmeter
Load Testing and JMeter Presentation
Ad

Similar to J meter (20)

PPTX
JMeter Intro
PPT
JMeter_introduction_Final.ppt for jmeter
PPTX
PDF
Performancetestingjmeter 131210111657-phpapp02
DOC
Jmeter interviewquestions
PPTX
JMETER-SKILLWISE
PDF
Automation - Apache JMeter
PPTX
Apache JMeter - A brief introduction
PPT
Performance testing with Jmeter
PPTX
Jmeter_Presentaion_Parag
PPTX
"Introduction to JMeter" @ CPTM 3rd Session
PDF
Performancetestingjmeter 121109061704-phpapp02
PPT
JMeter.ppt
PPTX
Perfromane Test Tool jmeter
PPT
Apachejmeterabriefintroduction
PDF
Introduction to JMeter
DOC
Best Jmeter Interview Questions- Prepared by Working Professionals
PPTX
Elments Used on Jmeter
PPTX
Test talk academy apachejmeter-120521121306-phpapp02
PPTX
How to use Jmeter for performance testing
JMeter Intro
JMeter_introduction_Final.ppt for jmeter
Performancetestingjmeter 131210111657-phpapp02
Jmeter interviewquestions
JMETER-SKILLWISE
Automation - Apache JMeter
Apache JMeter - A brief introduction
Performance testing with Jmeter
Jmeter_Presentaion_Parag
"Introduction to JMeter" @ CPTM 3rd Session
Performancetestingjmeter 121109061704-phpapp02
JMeter.ppt
Perfromane Test Tool jmeter
Apachejmeterabriefintroduction
Introduction to JMeter
Best Jmeter Interview Questions- Prepared by Working Professionals
Elments Used on Jmeter
Test talk academy apachejmeter-120521121306-phpapp02
How to use Jmeter for performance testing
Ad

Recently uploaded (20)

PPTX
ISO 45001 Occupational Health and Safety Management System
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
Online Work Permit System for Fast Permit Processing
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Softaken Excel to vCard Converter Software.pdf
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PDF
System and Network Administraation Chapter 3
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
Transform Your Business with a Software ERP System
PDF
System and Network Administration Chapter 2
PPTX
L1 - Introduction to python Backend.pptx
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
ISO 45001 Occupational Health and Safety Management System
VVF-Customer-Presentation2025-Ver1.9.pptx
Online Work Permit System for Fast Permit Processing
Odoo POS Development Services by CandidRoot Solutions
Softaken Excel to vCard Converter Software.pdf
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
ManageIQ - Sprint 268 Review - Slide Deck
System and Network Administraation Chapter 3
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Which alternative to Crystal Reports is best for small or large businesses.pdf
Transform Your Business with a Software ERP System
System and Network Administration Chapter 2
L1 - Introduction to python Backend.pptx
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Odoo Companies in India – Driving Business Transformation.pdf
Operating system designcfffgfgggggggvggggggggg
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)

J meter

  • 1. J Meter • The Apache JMeterTM is pure Java open source software. • It was first developed by Stefano Mazzocchi of the Apache Software Foundation. • It was designed to load test functional behavior and measure performance. • You can use JMeter to analyze and measure the performance of web application or a variety of services.
  • 2. What is Performance Testing • Performance Testing is defined as a type of software testing to ensure software applications will perform well under their expected workload. • The focus of Performance Testing is checking a software program's • Speed - Determines whether the application responds quickly • Scalability - Determines maximum user load the software application can handle. • Stability - Determines if the application is stable under varying loads
  • 3. Jmeter Elements • The different components of JMeter are called Elements. Each Element is designed for a specific purpose. • The figure below gives some common elements in JMeter.
  • 4. Jmeter Elements • There are 4 types of elements • Thread Groups • Samplers • Listeners • Configuration
  • 5. Thread Groups • Thread Groups is a collection of Threads. Each thread represents one user using the application under test. Basically, each Thread simulates one real user request to the server. • The controls for a thread group allow you to Set the number of threads for each group. • For example, if you set the number of threads as 100; JMeter will create and simulate 100 user requests to the server under test
  • 7. Samplers • As we know already that JMeter supports testing HTTP, FTP, JDBC and many other protocols. • We already know that Thread Groups simulate user request to the server • But how does a Thread Group know which type of requests (HTTP, FTP etc.) it needs to make? • The answer is Samplers • The user request could be FTP Request, HTTP Request, JDBC Request...Etc.
  • 9. Samplers • Here are some requests that J Meter can handle: FTP request: • Let's imagine you want to performance test an FTP server. You can use an FTP request sampler in JMeter to do this task. This controller lets you send an FTP "download file" or "upload file" request to an FTP server.
  • 10. Samplers • HTTP request: • This sampler lets you send an HTTP/HTTPS request to a web server. • Consider the example below. JMeter sends an HTTP request to Google website and retrieve HTML files or image from this website.
  • 11. Samplers • JDBC request: • This sampler lets you execute Database Performance Testing. It sends a JDBC Request (an SQL query) to a database. • For example, a database server has a field test_result stored in a table name test_tbl. You want to query this data from the database server; you can configure JMeter to send a SQL query to this server to retrieve data.
  • 13. Samplers • SMTP Sampler: • If you want to test a mail server, you can use SMTP sampler. This sampler is used to send email messages using the SMTP protocol.
  • 14. Listeners • Listeners: shows the results of the test execution. They can show results in a different format such as a tree, table, graph or log file.
  • 15. Listensers • View Result Tree show results of the user request in basic HTML format
  • 16. Listensers • Log show summary of a test results in the text file.
  • 17. Configuration Elements • set up defaults and variables for later use by samplers. • The figure below shows some commonly used configuration elements in JMeter
  • 18. Configuration Elements • Suppose you want to test a website for 100 users signing-in with different credentials. You do not need to record the script 100 times! You can parameterize the script to enter different login credentials. • This login information (e.g. Username, password) could be stored in a text file. JMeter has an element that allows you to read different parameters from that text file. • It is "CSV Data Set Config", which is used to read lines from a file, and split them into variables.
  • 19. Configuration Elements • This is an example of CSV Data. It's a text file which contains user and password to login your target website.
  • 20. Configuration Elements • HTTP Cookie Manager • You used your browser (Firefox, IE...Etc) to browse www.google.com • You log in with your user and password. • Your username and password will be stored in your computer as cookies. • Next time, when you visit www.google.com, you don't need to do log in again because your browser will use your cookies as user data to log in. • HTTP Cookie Manager also has the same feature as a web browser. If you have an HTTP Request and the response contains a cookie, the Cookie Manager automatically stores that cookie and will use it for all future requests to that particular website.
  • 21. Configuration Elements HTTP request default • This element lets you set default values that your HTTP Request controllers use. • For example, • You are sending 100 HTTP requests to the server google.com • You would have to manually enter server name = google.com for all these 100 requests • Instead, you could add a single HTTP request defaults with the "Server Name or IP" field = google.com • No need to type 100 times!
  • 23. Configuration Elements Login Config Element • The Login Config Element lets you add or override username and password settings in samplers. • For example, you want to simulate one user login to website www.facebook.com with user and password. You can use the Login Config Element to add this user and password setting in a user request
  • 24. Login Config VS CSV Data Config Login Config Element CSV Data Config Used to simulate one user login Used to simulate multiple user login Suitable for login parameter only (user and password) Suitable for large numbers of parameters
  • 25. Jmeter Timers • By default, JMeter sends the request without pausing between each request. In that case, JMeter could overwhelm your test server by making too many requests in a short amount of times. • Let imagine that you send thousands request to a web server under test in a few seconds. This is what happens! • Timers allow JMeter to delay between each request which a thread makes. A timer can solve the server overload problem. • Also, in real life visitors do not arrive at a website all at the same time, but at different time intervals. So Timer will help mimic the real-time behavior.
  • 26. Timers Constant Timer: • Constant timer delays each user request for the same amount of time. Gaussian Random Timer: Gaussian random timer delays each user request for a random amount of time.