talira

Apache JMeter

A 100% pure Java application designed to load test functional behavior and measure performance

open sourceApache-2.0self-hostablefree

Apache JMeter is the Apache Software Foundation's open source load testing tool, a pure Java application that tests the performance of web apps and many other services: HTTP and HTTPS, SOAP and REST web services, FTP, databases through JDBC, LDAP, JMS message brokers, SMTP, POP3 and IMAP mail servers, TCP, shell commands and Java objects. Test plans are built, recorded from a browser or native app and debugged in its desktop IDE, then run headless from the command line, distributed across several machines, with a dashboard HTML report at the end. Samplers, timers, listeners and functions are pluggable, scripts can run in Groovy or other JSR223 languages, and third-party plugins connect it to Maven, Gradle and Jenkins. It works at the protocol level: it doesn't run a page's JavaScript or render HTML like a browser.

Ways to install

Problems it solves

  • load test a website or REST API with a free tool that has a graphical test builder
  • record a user session in the browser and replay it with hundreds of virtual users
  • measure how our server performs when thousands of users hit it at the same time
  • load test a database with many concurrent JDBC queries
  • stress test a JMS message broker or an LDAP directory, not just web pages
  • load test SOAP web services from an enterprise system
  • load test our mail server's SMTP, POP3 and IMAP with many simultaneous connections
  • run the same load test headless from the command line in Jenkins
  • get an HTML report with response time percentiles and throughput graphs after a test
  • spread a big load test across several machines to generate more traffic
  • extract values from a JSON or HTML response and reuse them in the next request of a load test
  • free open source alternative to LoadRunner for performance testing
  • functional and regression test an API under load with assertions
  • write custom load test logic in Groovy when the GUI elements aren't enough
  • replay production access logs as a load test

Features

  • tests HTTP/HTTPS, SOAP/REST, FTP, JDBC, LDAP, JMS, SMTP/POP3/IMAP, TCP, native commands and Java objects
  • desktop IDE to record, build and debug test plans
  • HTTP(S) Test Script Recorder for browsers and native apps
  • headless command-line mode on any Java-compatible OS
  • dynamic HTML dashboard report
  • extract data from HTML, JSON, XML or any text format
  • multi-threaded concurrent sampling with thread groups
  • distributed testing across several machines
  • caching and offline analysis or replay of results
  • pluggable samplers, timers, listeners and functions
View 4 more
  • scriptable samplers in JSR223 languages such as Groovy
  • CI through third-party Maven, Gradle and Jenkins plugins
  • access log sampler to replay server logs
  • JUnit sampler

Limitations

  • Doesn't run a page's JavaScript or render HTML like a browser: it works at the protocol level, so rendering time isn't measured2

Capabilities

Has a command line toolplan not known
Takes pluginsplan not known

Alternatives

The same job

These do what Apache JMeter does.

  1. Gatling Modern load testing as code
  2. Artillery Full-stack performance and reliability testing: scalable API and Playwright load testing
  3. Locust An open source load testing tool: define user behaviour in plain Python and swarm your system with millions of simultaneous users
  4. Vegeta HTTP load testing tool and library built to drill HTTP services with a constant request rate
  5. Grafana k6 Like unit testing, for performance

Compare Apache JMeter with the top 3