Skip to content
Tutorials Center
My learning

Topics

Apache JMeter Tutorial

Learn Apache JMeter step by step: 37 lessons in 9 chapters with examples, quizzes, diagrams and projects.

Start learning →

of lessons completed

Getting Started

  1. 1 What Is Apache JMeter? Learn what Apache JMeter is, what it can test, how it simulates virtual users with threads, and where it fits next to browsers, k6 and Gatling.
  2. 2 Performance Testing Basics: Load, Stress, Spike and Soak Understand the key performance testing types, the metrics that matter (response time, throughput, errors, percentiles) and how to set goals before you touch JMeter.
  3. 3 Installing Apache JMeter on Windows, macOS and Linux Install Apache JMeter step by step: check Java, download and unpack the binary, start the GUI or command line, set memory, and verify the installation on any OS.
  4. 4 Your First JMeter Test Plan: Build, Run and Read Results Build a first JMeter test plan with a Thread Group, an HTTP Request, an assertion and a listener, run it in the GUI, then run it from the command line and read the results.

Concepts and Setup

  1. 5 The JMeter GUI Tour: Tree, Toolbar, Menus and Log Tour the Apache JMeter interface: the test plan tree, toolbar buttons, menus, templates, search, the log viewer, the function helper and keyboard shortcuts that speed up work.
  2. 6 Test Plan Elements, Scope and Execution Order in JMeter Learn the JMeter element types (samplers, controllers, config, timers, processors, assertions, listeners), how scoping works and the fixed order in which elements run.
  3. 7 Thread Groups and the JMeter Load Model Understand every Thread Group setting in JMeter (threads, ramp-up, loops, duration, error actions), how to model realistic load and how to shape it with plugins.
  4. 8 Config Elements: Defaults, Headers, Cookies and Data Files Use JMeter config elements to avoid repetition: HTTP Request Defaults, HTTP Header Manager, Cookie Manager, Cache Manager, User Defined Variables and CSV Data Set Config.
  5. 9 JMeter Variables, Properties and Functions Learn how JMeter variables (${name}), properties (__P, -J) and built-in functions like __Random, __time and __UUID work, with scope rules, examples and common pitfalls.

Test Plans and Samplers

  1. 10 The JMeter HTTP Request Sampler: GET, POST, Forms and Uploads Master the JMeter HTTP Request sampler: methods, parameters, body data, file uploads, redirects, keep-alive, timeouts, embedded resources and how the Basic tab maps to a real request.
  2. 11 Recording a Script with the JMeter HTTP(S) Test Script Recorder Record browser traffic into a JMeter test plan with the HTTP(S) Test Script Recorder: proxy setup, certificate, URL filters, grouping into transactions and cleaning up the recording.
  3. 12 Testing REST APIs and JSON with JMeter Test REST APIs with JMeter: build CRUD requests with JSON bodies, set headers and auth, extract ids with the JSON Extractor and chain create, read, update and delete calls.
  4. 13 JMeter Logic Controllers: Loop, If, While, Transaction and More Control the flow of a JMeter test with logic controllers: Simple, Loop, If, While, ForEach, Random, Interleave, Throughput, Once Only, Switch and the Transaction Controller.
  5. 14 JMeter Timers and Think Time: Constant, Random and Throughput Make JMeter users behave like humans with timers: Constant, Uniform Random, Gaussian Random, Constant Throughput, Precise Throughput and Synchronizing timers, with scope rules and examples.
  6. 15 JDBC, TCP, FTP, SMTP and Other JMeter Samplers Go beyond HTTP: test databases with the JDBC Request and connection configuration, plus TCP, FTP, SMTP, JMS and LDAP samplers, and the Debug and Test Action samplers.
  7. 16 JSR223 and Groovy Scripting in JMeter Script JMeter with JSR223 elements and Groovy: the vars, props, prev, sampler and log objects, pre- and post-processors, assertions, compilation caching and what to avoid.

Assertions and Listeners

  1. 17 Assertions in JMeter: Response, JSON, Duration and Size Verify responses in JMeter with assertions: Response Assertion, JSON Assertion, Duration, Size, XPath, HTML and JSR223 checks, plus scope, patterns, failure messages and best practices.
  2. 18 JMeter Listeners and Results: Tree, Summary and Aggregate Reports Choose the right JMeter listener: View Results Tree, Summary Report, Aggregate Report, Response Time Graph and Simple Data Writer, and learn the columns, percentiles and costs of each.
  3. 19 JTL Files: Saving and Reading JMeter Results Understand the JMeter JTL result file: CSV columns, which fields to save, how to configure saving in user.properties, and how to analyze a results file with your own script.

Parameterization and Correlation

  1. 20 CSV Data Set Config: Feeding Test Data to Threads Use the CSV Data Set Config element to give every virtual user its own data: file paths, variable names, delimiters, sharing modes, recycle and stop on EOF.
  2. 21 Variables, Properties and Functions in JMeter Learn JMeter ${variables}, ${__P()} properties, User Defined Variables and built-in functions such as __Random, __UUID and __time, with a runnable resolver stand-in.
  3. 22 Extractors and Correlation in JMeter Capture dynamic values such as tokens, CSRF fields and ids with the Regular Expression, JSON, CSS Selector and Boundary extractors, and reuse them in later requests.
  4. 23 Correlating a Login Flow Step by Step Build a realistic JMeter login flow: HTTP Cookie Manager, CSRF token extraction, bearer token reuse, redirects and per-user data, with a runnable server stand-in.

Distributed Testing

  1. 24 Distributed Testing Architecture: Controller and Agents Understand how JMeter distributed testing works: one controller, many agents, RMI communication, why total load multiplies, and when one machine is not enough.
  2. 25 Setting Up Remote Agents and Running a Distributed Test Configure JMeter agents step by step: jmeter-server, remote_hosts, the -r and -R flags, RMI keystore, ports, Docker and Kubernetes options, and troubleshooting.
  3. 26 Sizing and Tuning JMeter Load Generators Size JMeter agents correctly: heap and GC settings, threads per CPU core, bandwidth limits, ports and file descriptors, and how to prove the generator is not the bottleneck.

Analysis and Reporting

  1. 27 Reading the JMeter Statistics Table and JTL Files Understand JTL result files and the Aggregate Report columns: samples, average, median, percentiles, min, max, error rate and throughput, with a runnable JTL parser.
  2. 28 Percentiles, Averages and Why Outliers Matter Learn why averages mislead in performance testing, how to compute p50, p90, p95 and p99, how coordinated omission skews results, and how to set response-time goals.
  3. 29 Apdex Scores and Error Analysis in JMeter Compute the Apdex satisfaction score from response times, configure thresholds in JMeter, and classify errors by status, message and time to find the real cause.
  4. 30 The HTML Dashboard Report and Custom Reports Generate the JMeter HTML dashboard from a JTL file with -g or -e -o, read its charts, filter by labels and time, tune report properties and export raw data.

CI and Best Practices

  1. 31 Non-GUI Mode and Command-Line Options Run JMeter tests from the command line: -n, -t, -l, -J, -G, -e -o, logging options, exit codes, properties and a stand-in that builds the command and checks thresholds.
  2. 32 JMeter in CI/CD: GitHub Actions, Jenkins, Docker and Maven Add JMeter performance tests to a delivery pipeline with GitHub Actions, Jenkins, GitLab CI, Docker and the Maven plugin, and detect regressions by comparing with a baseline.
  3. 33 JMeter Test Plan Best Practices Practical JMeter best practices: structure, naming, think times, timers, assertions, listeners, resource use, scripting and maintenance, with a plan linter you can run.
  4. 34 Performance Test Types and How to Plan a Test Strategy Learn the performance test types (smoke, load, stress, spike, soak, scalability), how to define goals and workload models, and how to size a test with Little's Law.

Projects and Practice

  1. 35 Project: Load Testing a REST API from Plan to Report A complete JMeter project: design the scenarios, build the plan with login, CRUD and assertions, run a staged load, analyse percentiles and write the findings.
  2. 36 Project: Capacity Planning and Bottleneck Hunting Use stepped load test results to find the saturation point, estimate how many servers you need, apply the utilization law, and write a capacity recommendation.
  3. 37 Practice: Troubleshooting JMeter Test Plans Practice diagnosing broken JMeter tests: unresolved variables, failed correlation, wrong thread counts, memory errors, RMI problems and misleading results, with exercises.