SlideShare a Scribd company logo
1 of 16
Apache Jmeter Best Practices
and Performance Tuning Tips
NAVEENKUMAR NAMACHIVAYAM
Founder – QAInsights.com
http://QAInsights.com
Apache Jmeter Best Practices
Do not use GUI mode
use jmeter -n -t test.jmx test.jtl,
add a '-l' argument before the test plan name for listeners.
Apache Jmeter Best Practices
Use Remote and Distributed testing for
larger load testing
Apache Jmeter Best Practices
Do not load more than 300 threads per
Jmeter enginer
Apache Jmeter Best Practices
Do not add Listeners to your Jmeter test
plan
Apache Jmeter Best Practices
Do not add Graphs to your Jmeter test plan
Apache Jmeter Best Practices
Monitor the command prompt of Jmeter during testing (non-GUI
mode)
Monitor the log during testing (GUI mode)
Apache Jmeter Best Practices
Erase the local path of all the CSV Data Set config files
Apache Jmeter Best Practices
Use naming conventions for all the elements
Apache Jmeter Best Practices
Use JTL file name (XML format) to store the logs
Apache Jmeter Performance Tuning Tips
Add following properties for better output
jmeter.save.saveservice.output_format=csv
jmeter.save.saveservice.data_type=false
jmeter.save.saveservice.label=true
jmeter.save.saveservice.response_code=true
jmeter.save.saveservice.response_data.on_error=false
jmeter.save.saveservice.response_message=false
jmeter.save.saveservice.successful=true
jmeter.save.saveservice.thread_name=true
jmeter.save.saveservice.time=true
jmeter.save.saveservice.subresults=false
jmeter.save.saveservice.assertions=false
jmeter.save.saveservice.latency=true
jmeter.save.saveservice.bytes=true
jmeter.save.saveservice.hostname=true
jmeter.save.saveservice.thread_counts=true
jmeter.save.saveservice.sample_count=true
jmeter.save.saveservice.response_message=false
jmeter.save.saveservice.assertion_results_failure_message=false
jmeter.save.saveservice.timestamp_format=HH:mm:ss
jmeter.save.saveservice.default_delimiter=;
jmeter.save.saveservice.print_field_names=true
Apache Jmeter Performance Tuning Tips
Add relevant Assertions and Post-processors elements only
Apache Jmeter Performance Tuning Tips
Do not use XPATH extractor
Apache Jmeter Performance Tuning Tips
Use JSR 223 and Groovy for scripting
Apache Jmeter Performance Tuning Tips
Generate reports after run
Thank you
Please visit http://qainsights.com/services for more training programs.

More Related Content

Viewers also liked

Interpreting Performance Test Results
Interpreting Performance Test ResultsInterpreting Performance Test Results
Interpreting Performance Test ResultsEric Proegler
 
JMeter - Performance testing your webapp
JMeter - Performance testing your webappJMeter - Performance testing your webapp
JMeter - Performance testing your webappAmit Solanki
 
Introduction to jmeter
Introduction to jmeterIntroduction to jmeter
Introduction to jmetertest test
 
Fundamentals of java --- version 2
Fundamentals of java --- version 2Fundamentals of java --- version 2
Fundamentals of java --- version 2Uday Sharma
 
QA Lab: тестирование ПО. Эд Изотов: "Jmeter. Достучаться до небес".
QA Lab: тестирование ПО. Эд Изотов: "Jmeter. Достучаться до небес".QA Lab: тестирование ПО. Эд Изотов: "Jmeter. Достучаться до небес".
QA Lab: тестирование ПО. Эд Изотов: "Jmeter. Достучаться до небес".GeeksLab Odessa
 
Нагрузочное тестирование проектов на Drupal с использованием Apache JMeter
Нагрузочное тестирование проектов на Drupal с использованием Apache JMeterНагрузочное тестирование проектов на Drupal с использованием Apache JMeter
Нагрузочное тестирование проектов на Drupal с использованием Apache JMeterPVasili
 
Эд Изотов: "In God we trust the REST we test".
Эд Изотов: "In God we trust the REST we test".Эд Изотов: "In God we trust the REST we test".
Эд Изотов: "In God we trust the REST we test".Hub-IT-School
 

Viewers also liked (15)

Interpreting Performance Test Results
Interpreting Performance Test ResultsInterpreting Performance Test Results
Interpreting Performance Test Results
 
Beanshell scripting in Apache JMeter
Beanshell scripting in Apache JMeterBeanshell scripting in Apache JMeter
Beanshell scripting in Apache JMeter
 
Timers in Apache JMeter
Timers in Apache JMeterTimers in Apache JMeter
Timers in Apache JMeter
 
JMeter - Performance testing your webapp
JMeter - Performance testing your webappJMeter - Performance testing your webapp
JMeter - Performance testing your webapp
 
Introduction to jmeter
Introduction to jmeterIntroduction to jmeter
Introduction to jmeter
 
Tasks
TasksTasks
Tasks
 
QSpiders - Introduction to JMeter
QSpiders - Introduction to JMeterQSpiders - Introduction to JMeter
QSpiders - Introduction to JMeter
 
QSpiders - Introduction to HP Load Runner
QSpiders - Introduction to HP Load RunnerQSpiders - Introduction to HP Load Runner
QSpiders - Introduction to HP Load Runner
 
Fundamentals of java --- version 2
Fundamentals of java --- version 2Fundamentals of java --- version 2
Fundamentals of java --- version 2
 
QA Lab: тестирование ПО. Эд Изотов: "Jmeter. Достучаться до небес".
QA Lab: тестирование ПО. Эд Изотов: "Jmeter. Достучаться до небес".QA Lab: тестирование ПО. Эд Изотов: "Jmeter. Достучаться до небес".
QA Lab: тестирование ПО. Эд Изотов: "Jmeter. Достучаться до небес".
 
Efficient performance testing
Efficient performance testingEfficient performance testing
Efficient performance testing
 
Нагрузочное тестирование проектов на Drupal с использованием Apache JMeter
Нагрузочное тестирование проектов на Drupal с использованием Apache JMeterНагрузочное тестирование проектов на Drupal с использованием Apache JMeter
Нагрузочное тестирование проектов на Drupal с использованием Apache JMeter
 
Core java
Core javaCore java
Core java
 
Эд Изотов: "In God we trust the REST we test".
Эд Изотов: "In God we trust the REST we test".Эд Изотов: "In God we trust the REST we test".
Эд Изотов: "In God we trust the REST we test".
 
Start up ideas - Search Engines for Apps
Start up ideas - Search Engines for AppsStart up ideas - Search Engines for Apps
Start up ideas - Search Engines for Apps
 

More from NaveenKumar Namachivayam

Interesting facts about IRCTC and Lessons for Performance Testers
Interesting facts about IRCTC and Lessons for Performance TestersInteresting facts about IRCTC and Lessons for Performance Testers
Interesting facts about IRCTC and Lessons for Performance TestersNaveenKumar Namachivayam
 
Internationalization Test Approach - Full Whitepaper
Internationalization Test Approach - Full WhitepaperInternationalization Test Approach - Full Whitepaper
Internationalization Test Approach - Full WhitepaperNaveenKumar Namachivayam
 
Message modifications MS Outlook Intermediate
Message modifications MS Outlook IntermediateMessage modifications MS Outlook Intermediate
Message modifications MS Outlook IntermediateNaveenKumar Namachivayam
 
Email Enhancements MS Outlook Intermediate
Email Enhancements MS Outlook IntermediateEmail Enhancements MS Outlook Intermediate
Email Enhancements MS Outlook IntermediateNaveenKumar Namachivayam
 

More from NaveenKumar Namachivayam (17)

Installing Groovy engine in Apache Jmeter
Installing Groovy engine in Apache JmeterInstalling Groovy engine in Apache Jmeter
Installing Groovy engine in Apache Jmeter
 
Interesting facts about IRCTC and Lessons for Performance Testers
Interesting facts about IRCTC and Lessons for Performance TestersInteresting facts about IRCTC and Lessons for Performance Testers
Interesting facts about IRCTC and Lessons for Performance Testers
 
Web service testing using QTP (UFT)
Web service testing using QTP (UFT)Web service testing using QTP (UFT)
Web service testing using QTP (UFT)
 
Types of performance testing
Types of performance testingTypes of performance testing
Types of performance testing
 
Internationalization Test Approach - Full Whitepaper
Internationalization Test Approach - Full WhitepaperInternationalization Test Approach - Full Whitepaper
Internationalization Test Approach - Full Whitepaper
 
Working faster MS Outlook Advance
Working faster MS Outlook AdvanceWorking faster MS Outlook Advance
Working faster MS Outlook Advance
 
Customizing Outlook MS Outlook Advance
Customizing Outlook MS Outlook AdvanceCustomizing Outlook MS Outlook Advance
Customizing Outlook MS Outlook Advance
 
Formatting Options MS Outlook Advance
Formatting Options MS Outlook AdvanceFormatting Options MS Outlook Advance
Formatting Options MS Outlook Advance
 
Contacts
ContactsContacts
Contacts
 
Message modifications MS Outlook Intermediate
Message modifications MS Outlook IntermediateMessage modifications MS Outlook Intermediate
Message modifications MS Outlook Intermediate
 
Email Enhancements MS Outlook Intermediate
Email Enhancements MS Outlook IntermediateEmail Enhancements MS Outlook Intermediate
Email Enhancements MS Outlook Intermediate
 
Journal and Notes
Journal and NotesJournal and Notes
Journal and Notes
 
Calendar
CalendarCalendar
Calendar
 
Organizing messages
Organizing messagesOrganizing messages
Organizing messages
 
Email Feature
Email FeatureEmail Feature
Email Feature
 
Messages - MS Outlook
Messages - MS OutlookMessages - MS Outlook
Messages - MS Outlook
 
Getting started with Outlook
Getting started with OutlookGetting started with Outlook
Getting started with Outlook
 

Recently uploaded

Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 

Recently uploaded (20)

Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

Apache Jmeter Best Practices and Performance Tuning Tips

  • 1. Apache Jmeter Best Practices and Performance Tuning Tips NAVEENKUMAR NAMACHIVAYAM Founder – QAInsights.com http://QAInsights.com
  • 2. Apache Jmeter Best Practices Do not use GUI mode use jmeter -n -t test.jmx test.jtl, add a '-l' argument before the test plan name for listeners.
  • 3. Apache Jmeter Best Practices Use Remote and Distributed testing for larger load testing
  • 4. Apache Jmeter Best Practices Do not load more than 300 threads per Jmeter enginer
  • 5. Apache Jmeter Best Practices Do not add Listeners to your Jmeter test plan
  • 6. Apache Jmeter Best Practices Do not add Graphs to your Jmeter test plan
  • 7. Apache Jmeter Best Practices Monitor the command prompt of Jmeter during testing (non-GUI mode) Monitor the log during testing (GUI mode)
  • 8. Apache Jmeter Best Practices Erase the local path of all the CSV Data Set config files
  • 9. Apache Jmeter Best Practices Use naming conventions for all the elements
  • 10. Apache Jmeter Best Practices Use JTL file name (XML format) to store the logs
  • 11. Apache Jmeter Performance Tuning Tips Add following properties for better output jmeter.save.saveservice.output_format=csv jmeter.save.saveservice.data_type=false jmeter.save.saveservice.label=true jmeter.save.saveservice.response_code=true jmeter.save.saveservice.response_data.on_error=false jmeter.save.saveservice.response_message=false jmeter.save.saveservice.successful=true jmeter.save.saveservice.thread_name=true jmeter.save.saveservice.time=true jmeter.save.saveservice.subresults=false jmeter.save.saveservice.assertions=false jmeter.save.saveservice.latency=true jmeter.save.saveservice.bytes=true jmeter.save.saveservice.hostname=true jmeter.save.saveservice.thread_counts=true jmeter.save.saveservice.sample_count=true jmeter.save.saveservice.response_message=false jmeter.save.saveservice.assertion_results_failure_message=false jmeter.save.saveservice.timestamp_format=HH:mm:ss jmeter.save.saveservice.default_delimiter=; jmeter.save.saveservice.print_field_names=true
  • 12. Apache Jmeter Performance Tuning Tips Add relevant Assertions and Post-processors elements only
  • 13. Apache Jmeter Performance Tuning Tips Do not use XPATH extractor
  • 14. Apache Jmeter Performance Tuning Tips Use JSR 223 and Groovy for scripting
  • 15. Apache Jmeter Performance Tuning Tips Generate reports after run
  • 16. Thank you Please visit http://qainsights.com/services for more training programs.