SlideShare a Scribd company logo
1 of 34
Download to read offline
Load Testing
Why we need it?
What tools to use?
Load Testing Goals
- Checking maximum simultaneous requests (Determining infrastructure limits)
- Verifying acceptance of response time during high load
- Verifying system stability under load - look for memory leaks in long tests
- Predict future resource needs and architectural improvements
- Verifying system behaviour after high load
- Evaluating current capacity against defined requirements
More reasons are listed at http://performance-testing.org/performance-testing-reasons
Open Source Tools
- JMeter
- Yandex Tank
- Taurus
JMeterThe Apache JMeter™ application is open source software,
a 100% pure Java application
Steps to start load testing
1)Launch application (jmeter.sh for Unix-based systems and jmeter.bat for
Windows)
2)Right-button click on Test Plan and select Add > Threads (Users) > Thread
group (preferably jp@gc - Ultimate Thread Group)
3)Configure Start Thread Count (amount of virtual users which will load
your website), Startup Time (time for reaching amount of VU defined),
Hold Load For (time for holding peak amount of VU defined), Shutdown
Time (time for decreasing VUs by stopping requests)
JMeter - Step 2 - Select Ultimate Thread Group
JMeter - Step 3 - Thread’s configuration
Steps to start load testing (part 2)
4) Right-button click on Thread and select Add > Config Element > HTTP
Request Default
5) Configure Server Name or IP (e.g. youwebsite.com or
123.231.321.123), Port Number (e.g. 80) and Protocol (http or https)
JMeter - Step 4 - select HTTP Request Defaults
JMeter - Step 5 - Configure HTTP Request Defaults
Steps to start load testing (part 3)
6) Right-button click on Thread and select Add > Sampler > HTTP
Request
7) Configure Path (link to page you would like to test; e.g. /login.php or
/blog/about) and specify Method GET
JMeter - Step 6 - Select Sampler HTTP Request
JMeter - Step 7 - Configure Sampler HTTP Request
Steps to start load testing (part 4)
8) Right-button click on Thread and select
Add > Listener > jp@gc - Hits per Second
Add > Listener > jp@gc - Response Times vs Threads
Add > Listener > jp@gc - Response Latencies Over Time
Add > Listener > jp@gc - Response Codes per Second
9) Finally… Run test plan by clicking on Start
JMeter - Step 8 - Configure Sampler HTTP Request
JMeter - 30 VUs - Hits per second
JMeter - 30 VUs - Response Time Over Time
JMeter - 30 VUs - Latencies Over Time
JMeter - 30 VUs - Response Codes per Second
Notes
User “Run” > “Clear All” before starting new test
Once you identified the issue with server responses try to decrease Start
Threads Count and increase Startup Time to get to accurate value of
allowed concurrent connections
IssuesHow to identify issues with JMeter
JMeter - 50 VUs - 500 Response codes
Server is down...
Really down...
Short term solutions
Restart Servers
Tune configuration of web servers
Add more servers
Long term solutions
Consider moving infrastructure to the Cloud
Use CDN
Use different domains for static resources (and fast web servers for them;
e.g. Ngnix or lighttpd)
Use memcached for storing mostly used DB queries
Use downstream cacheability headers
Consider moving part of the application logic to microservices
Setup auto-scale at your Cloud provider
Cloud Solutions
Only JMeter?What other tools can be used for load testing?
Load Testing Tools
- JMeter
- Yandex.Tank
- Gatling
- Locust
- Taurus
- The Grinder
Find more at
http://alternativeto.net/
Commercial Solutions
Popular Commercial Solutions
SOASTA
https://www.soasta.com/
BlazeMeter
https://www.blazemeter.com/
What Else? (topics for future slides)
Topics related to Load Testing
- Functional Tests in JMeter (using runnable JAR files to automate functional
and load testing)
- PDF Reporting. BlazeMeter Sense (former Loadosophia)
- Response Data validation
- Continuous Load Testing. Configuring CI with headless JMeter
- Configuration of Master / Slave nodes to perform load testing using
multiple workstations
Thank youQuestions?

More Related Content

What's hot

Infographic: Importance of Performance Testing
Infographic: Importance of Performance TestingInfographic: Importance of Performance Testing
Infographic: Importance of Performance TestingKiwiQA
 
An Introduction to Performance Testing
An Introduction to Performance TestingAn Introduction to Performance Testing
An Introduction to Performance TestingSWAAM Tech
 
Performance testing : An Overview
Performance testing : An OverviewPerformance testing : An Overview
Performance testing : An Overviewsharadkjain
 
Basic of jMeter
Basic of jMeter Basic of jMeter
Basic of jMeter Shub
 
Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeterGalih Lasahido
 
Load Testing Best Practices
Load Testing Best PracticesLoad Testing Best Practices
Load Testing Best PracticesApica
 
Performance testing presentation
Performance testing presentationPerformance testing presentation
Performance testing presentationBelatrix Software
 
Presentation on Apache Jmeter
Presentation on Apache JmeterPresentation on Apache Jmeter
Presentation on Apache JmeterSabitri Gaire
 
Performance testing and reporting with JMeter
Performance testing and reporting with JMeterPerformance testing and reporting with JMeter
Performance testing and reporting with JMeterjvSlideshare
 
Performance Testing from Scratch + JMeter intro
Performance Testing from Scratch + JMeter introPerformance Testing from Scratch + JMeter intro
Performance Testing from Scratch + JMeter introMykola Kovsh
 
Performance Requirement Gathering
Performance Requirement GatheringPerformance Requirement Gathering
Performance Requirement GatheringAtul Pant
 
Apache JMeter - A brief introduction
Apache JMeter - A brief introductionApache JMeter - A brief introduction
Apache JMeter - A brief introductionsilenceIT Inc.
 
Jmeter Performance Testing
Jmeter Performance TestingJmeter Performance Testing
Jmeter Performance TestingAtul Pant
 
Performance Testing With Jmeter
Performance Testing With JmeterPerformance Testing With Jmeter
Performance Testing With JmeterAdam Goucher
 
Performance testing jmeter
Performance testing jmeterPerformance testing jmeter
Performance testing jmeterBhojan Rajan
 
Introduction to blazemeter and jmeter
Introduction to blazemeter and jmeterIntroduction to blazemeter and jmeter
Introduction to blazemeter and jmeterb4usolution .
 
Performance Test Plan - Sample 1
Performance Test Plan - Sample 1Performance Test Plan - Sample 1
Performance Test Plan - Sample 1Atul Pant
 

What's hot (20)

Load testing with J meter
Load testing with J meterLoad testing with J meter
Load testing with J meter
 
Infographic: Importance of Performance Testing
Infographic: Importance of Performance TestingInfographic: Importance of Performance Testing
Infographic: Importance of Performance Testing
 
An Introduction to Performance Testing
An Introduction to Performance TestingAn Introduction to Performance Testing
An Introduction to Performance Testing
 
Performance testing : An Overview
Performance testing : An OverviewPerformance testing : An Overview
Performance testing : An Overview
 
Basic of jMeter
Basic of jMeter Basic of jMeter
Basic of jMeter
 
Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeter
 
Load Testing Best Practices
Load Testing Best PracticesLoad Testing Best Practices
Load Testing Best Practices
 
How to start performance testing project
How to start performance testing projectHow to start performance testing project
How to start performance testing project
 
Performance testing presentation
Performance testing presentationPerformance testing presentation
Performance testing presentation
 
Presentation on Apache Jmeter
Presentation on Apache JmeterPresentation on Apache Jmeter
Presentation on Apache Jmeter
 
Performance testing and reporting with JMeter
Performance testing and reporting with JMeterPerformance testing and reporting with JMeter
Performance testing and reporting with JMeter
 
Performance Testing from Scratch + JMeter intro
Performance Testing from Scratch + JMeter introPerformance Testing from Scratch + JMeter intro
Performance Testing from Scratch + JMeter intro
 
Neoload
Neoload Neoload
Neoload
 
Performance Requirement Gathering
Performance Requirement GatheringPerformance Requirement Gathering
Performance Requirement Gathering
 
Apache JMeter - A brief introduction
Apache JMeter - A brief introductionApache JMeter - A brief introduction
Apache JMeter - A brief introduction
 
Jmeter Performance Testing
Jmeter Performance TestingJmeter Performance Testing
Jmeter Performance Testing
 
Performance Testing With Jmeter
Performance Testing With JmeterPerformance Testing With Jmeter
Performance Testing With Jmeter
 
Performance testing jmeter
Performance testing jmeterPerformance testing jmeter
Performance testing jmeter
 
Introduction to blazemeter and jmeter
Introduction to blazemeter and jmeterIntroduction to blazemeter and jmeter
Introduction to blazemeter and jmeter
 
Performance Test Plan - Sample 1
Performance Test Plan - Sample 1Performance Test Plan - Sample 1
Performance Test Plan - Sample 1
 

Similar to QA. Load Testing

"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd Session"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd SessionTharinda Liyanage
 
Server Performance by Tonny
Server Performance by TonnyServer Performance by Tonny
Server Performance by TonnyAgate Studio
 
Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Nitish Bhardwaj
 
J meter introduction
J meter introductionJ meter introduction
J meter introductionBharath Kumar
 
Automation - Apache JMeter
Automation - Apache JMeterAutomation - Apache JMeter
Automation - Apache JMeterWira Santos
 
JMeter & ColdFusion
JMeter & ColdFusion JMeter & ColdFusion
JMeter & ColdFusion isummation
 
Jmeter proxy step_by_step
Jmeter proxy step_by_stepJmeter proxy step_by_step
Jmeter proxy step_by_stepKapil Chawla
 
Load Test Drupal Site Using JMeter and Amazon AWS
Load Test Drupal Site Using JMeter and Amazon AWSLoad Test Drupal Site Using JMeter and Amazon AWS
Load Test Drupal Site Using JMeter and Amazon AWSVladimir Ilic
 
Day1_Apache_JMeter_Overview
Day1_Apache_JMeter_OverviewDay1_Apache_JMeter_Overview
Day1_Apache_JMeter_OverviewSravanthi N
 
Software testing
Software testingSoftware testing
Software testingnil65
 
Perfromane Test Tool jmeter
Perfromane Test Tool jmeterPerfromane Test Tool jmeter
Perfromane Test Tool jmeterNaga Mallala
 
Performance Testing - Apache Benchmark, JMeter
Performance Testing  - Apache Benchmark, JMeterPerformance Testing  - Apache Benchmark, JMeter
Performance Testing - Apache Benchmark, JMeterAntoni Orfin
 
Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02Shivakumara .
 
Performance testing and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meterPurna Chandar
 

Similar to QA. Load Testing (20)

"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd Session"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd Session
 
Server Performance by Tonny
Server Performance by TonnyServer Performance by Tonny
Server Performance by Tonny
 
Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02
 
J meter introduction
J meter introductionJ meter introduction
J meter introduction
 
Automation - Apache JMeter
Automation - Apache JMeterAutomation - Apache JMeter
Automation - Apache JMeter
 
JMeter & ColdFusion
JMeter & ColdFusion JMeter & ColdFusion
JMeter & ColdFusion
 
Jmeter proxy step_by_step
Jmeter proxy step_by_stepJmeter proxy step_by_step
Jmeter proxy step_by_step
 
Load Test Drupal Site Using JMeter and Amazon AWS
Load Test Drupal Site Using JMeter and Amazon AWSLoad Test Drupal Site Using JMeter and Amazon AWS
Load Test Drupal Site Using JMeter and Amazon AWS
 
Day1_Apache_JMeter_Overview
Day1_Apache_JMeter_OverviewDay1_Apache_JMeter_Overview
Day1_Apache_JMeter_Overview
 
Software testing
Software testingSoftware testing
Software testing
 
Perfromane Test Tool jmeter
Perfromane Test Tool jmeterPerfromane Test Tool jmeter
Perfromane Test Tool jmeter
 
JMETER-SKILLWISE
JMETER-SKILLWISEJMETER-SKILLWISE
JMETER-SKILLWISE
 
JMeter
JMeterJMeter
JMeter
 
J Meter Intro
J Meter IntroJ Meter Intro
J Meter Intro
 
JMeter Intro
JMeter IntroJMeter Intro
JMeter Intro
 
Performance Testing - Apache Benchmark, JMeter
Performance Testing  - Apache Benchmark, JMeterPerformance Testing  - Apache Benchmark, JMeter
Performance Testing - Apache Benchmark, JMeter
 
apache_jmeter.pptx
apache_jmeter.pptxapache_jmeter.pptx
apache_jmeter.pptx
 
Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02
 
Performance testing and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meter
 
Jmeter
JmeterJmeter
Jmeter
 

Recently uploaded

Unidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptxUnidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptxmibuzondetrabajo
 
Summary ID-IGF 2016 National Dialogue - English (tata kelola internet / int...
Summary  ID-IGF 2016 National Dialogue  - English (tata kelola internet / int...Summary  ID-IGF 2016 National Dialogue  - English (tata kelola internet / int...
Summary ID-IGF 2016 National Dialogue - English (tata kelola internet / int...ICT Watch - Indonesia
 
TRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptxTRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptxAndrieCagasanAkio
 
Cybersecurity Threats and Cybersecurity Best Practices
Cybersecurity Threats and Cybersecurity Best PracticesCybersecurity Threats and Cybersecurity Best Practices
Cybersecurity Threats and Cybersecurity Best PracticesLumiverse Solutions Pvt Ltd
 
IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119APNIC
 
办理澳洲USYD文凭证书学历认证【Q微/1954292140】办理悉尼大学毕业证书真实成绩单GPA修改/办理澳洲大学文凭证书Offer录取通知书/在读证明...
办理澳洲USYD文凭证书学历认证【Q微/1954292140】办理悉尼大学毕业证书真实成绩单GPA修改/办理澳洲大学文凭证书Offer录取通知书/在读证明...办理澳洲USYD文凭证书学历认证【Q微/1954292140】办理悉尼大学毕业证书真实成绩单GPA修改/办理澳洲大学文凭证书Offer录取通知书/在读证明...
办理澳洲USYD文凭证书学历认证【Q微/1954292140】办理悉尼大学毕业证书真实成绩单GPA修改/办理澳洲大学文凭证书Offer录取通知书/在读证明...vmzoxnx5
 
Company Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptxCompany Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptxMario
 
Summary IGF 2013 Bali - English (tata kelola internet / internet governance)
Summary  IGF 2013 Bali - English (tata kelola internet / internet governance)Summary  IGF 2013 Bali - English (tata kelola internet / internet governance)
Summary IGF 2013 Bali - English (tata kelola internet / internet governance)ICT Watch - Indonesia
 
How to login to Router net ORBI LOGIN...
How to login to Router net ORBI LOGIN...How to login to Router net ORBI LOGIN...
How to login to Router net ORBI LOGIN...rrouter90
 

Recently uploaded (9)

Unidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptxUnidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptx
 
Summary ID-IGF 2016 National Dialogue - English (tata kelola internet / int...
Summary  ID-IGF 2016 National Dialogue  - English (tata kelola internet / int...Summary  ID-IGF 2016 National Dialogue  - English (tata kelola internet / int...
Summary ID-IGF 2016 National Dialogue - English (tata kelola internet / int...
 
TRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptxTRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptx
 
Cybersecurity Threats and Cybersecurity Best Practices
Cybersecurity Threats and Cybersecurity Best PracticesCybersecurity Threats and Cybersecurity Best Practices
Cybersecurity Threats and Cybersecurity Best Practices
 
IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119
 
办理澳洲USYD文凭证书学历认证【Q微/1954292140】办理悉尼大学毕业证书真实成绩单GPA修改/办理澳洲大学文凭证书Offer录取通知书/在读证明...
办理澳洲USYD文凭证书学历认证【Q微/1954292140】办理悉尼大学毕业证书真实成绩单GPA修改/办理澳洲大学文凭证书Offer录取通知书/在读证明...办理澳洲USYD文凭证书学历认证【Q微/1954292140】办理悉尼大学毕业证书真实成绩单GPA修改/办理澳洲大学文凭证书Offer录取通知书/在读证明...
办理澳洲USYD文凭证书学历认证【Q微/1954292140】办理悉尼大学毕业证书真实成绩单GPA修改/办理澳洲大学文凭证书Offer录取通知书/在读证明...
 
Company Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptxCompany Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptx
 
Summary IGF 2013 Bali - English (tata kelola internet / internet governance)
Summary  IGF 2013 Bali - English (tata kelola internet / internet governance)Summary  IGF 2013 Bali - English (tata kelola internet / internet governance)
Summary IGF 2013 Bali - English (tata kelola internet / internet governance)
 
How to login to Router net ORBI LOGIN...
How to login to Router net ORBI LOGIN...How to login to Router net ORBI LOGIN...
How to login to Router net ORBI LOGIN...
 

QA. Load Testing

  • 1. Load Testing Why we need it? What tools to use?
  • 2. Load Testing Goals - Checking maximum simultaneous requests (Determining infrastructure limits) - Verifying acceptance of response time during high load - Verifying system stability under load - look for memory leaks in long tests - Predict future resource needs and architectural improvements - Verifying system behaviour after high load - Evaluating current capacity against defined requirements More reasons are listed at http://performance-testing.org/performance-testing-reasons
  • 3. Open Source Tools - JMeter - Yandex Tank - Taurus
  • 4. JMeterThe Apache JMeter™ application is open source software, a 100% pure Java application
  • 5. Steps to start load testing 1)Launch application (jmeter.sh for Unix-based systems and jmeter.bat for Windows) 2)Right-button click on Test Plan and select Add > Threads (Users) > Thread group (preferably jp@gc - Ultimate Thread Group) 3)Configure Start Thread Count (amount of virtual users which will load your website), Startup Time (time for reaching amount of VU defined), Hold Load For (time for holding peak amount of VU defined), Shutdown Time (time for decreasing VUs by stopping requests)
  • 6. JMeter - Step 2 - Select Ultimate Thread Group
  • 7. JMeter - Step 3 - Thread’s configuration
  • 8. Steps to start load testing (part 2) 4) Right-button click on Thread and select Add > Config Element > HTTP Request Default 5) Configure Server Name or IP (e.g. youwebsite.com or 123.231.321.123), Port Number (e.g. 80) and Protocol (http or https)
  • 9. JMeter - Step 4 - select HTTP Request Defaults
  • 10. JMeter - Step 5 - Configure HTTP Request Defaults
  • 11. Steps to start load testing (part 3) 6) Right-button click on Thread and select Add > Sampler > HTTP Request 7) Configure Path (link to page you would like to test; e.g. /login.php or /blog/about) and specify Method GET
  • 12. JMeter - Step 6 - Select Sampler HTTP Request
  • 13. JMeter - Step 7 - Configure Sampler HTTP Request
  • 14. Steps to start load testing (part 4) 8) Right-button click on Thread and select Add > Listener > jp@gc - Hits per Second Add > Listener > jp@gc - Response Times vs Threads Add > Listener > jp@gc - Response Latencies Over Time Add > Listener > jp@gc - Response Codes per Second 9) Finally… Run test plan by clicking on Start
  • 15. JMeter - Step 8 - Configure Sampler HTTP Request
  • 16. JMeter - 30 VUs - Hits per second
  • 17. JMeter - 30 VUs - Response Time Over Time
  • 18. JMeter - 30 VUs - Latencies Over Time
  • 19. JMeter - 30 VUs - Response Codes per Second
  • 20. Notes User “Run” > “Clear All” before starting new test Once you identified the issue with server responses try to decrease Start Threads Count and increase Startup Time to get to accurate value of allowed concurrent connections
  • 21. IssuesHow to identify issues with JMeter
  • 22. JMeter - 50 VUs - 500 Response codes
  • 25. Short term solutions Restart Servers Tune configuration of web servers Add more servers
  • 26. Long term solutions Consider moving infrastructure to the Cloud Use CDN Use different domains for static resources (and fast web servers for them; e.g. Ngnix or lighttpd) Use memcached for storing mostly used DB queries Use downstream cacheability headers Consider moving part of the application logic to microservices Setup auto-scale at your Cloud provider
  • 28. Only JMeter?What other tools can be used for load testing?
  • 29. Load Testing Tools - JMeter - Yandex.Tank - Gatling - Locust - Taurus - The Grinder Find more at http://alternativeto.net/
  • 32. What Else? (topics for future slides)
  • 33. Topics related to Load Testing - Functional Tests in JMeter (using runnable JAR files to automate functional and load testing) - PDF Reporting. BlazeMeter Sense (former Loadosophia) - Response Data validation - Continuous Load Testing. Configuring CI with headless JMeter - Configuration of Master / Slave nodes to perform load testing using multiple workstations