Apache JMeter Introduction

Apache JMeter is open source software, a 100% pure Java application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other test functions.

What Can JMeter Do

Apache JMeter can be used to test performance both on static and dynamic resources, and web dynamic applications. It can simulate a heavy load on a server, group of servers, network, or object to test its strength or to analyze overall performance under different load types.

Key Features

  • Multi-protocol Support: Ability to load and performance test many different applications, server, and protocol types including:

    • Web - HTTP, HTTPS (Java, NodeJS, PHP, ASP.NET, and more)
    • SOAP / REST Webservices
    • FTP
    • Database via JDBC
    • LDAP
    • Message-oriented middleware (MOM) via JMS
    • Mail - SMTP(S), POP3(S), and IMAP(S)
    • Native commands or shell scripts
    • TCP
    • Java Objects
  • Full-featured Test IDE: Allows fast Test Plan recording from Browsers or native applications, building and debugging

  • CLI Mode: Command-line mode (previously called Non GUI or headless mode) to load test from any Java compatible OS (Linux, Windows, Mac OSX, and more)

  • Dynamic HTML Reports: Complete and ready to present dynamic HTML report generation

  • Data Extraction: Easy correlation through ability to extract data from HTML, JSON, XML, or any textual format

  • 100% Java: Complete portability and pure Java implementation

  • Multi-threading Framework: Concurrent sampling by many threads and simultaneous sampling of different functions by separate thread groups

  • Highly Extensible: Pluggable Samplers, Scriptable Samplers (JSR223-compatible languages like Groovy and BeanShell)

  • Continuous Integration: Support for Maven, Gradle, and Jenkins integration

JMeter is Not a Browser

JMeter works at protocol level. As far as web-services and remote services are concerned, JMeter looks like a browser (or rather, multiple browsers); however JMeter does not perform all the actions supported by browsers. In particular, JMeter does not execute JavaScript found in HTML pages, nor does it render the HTML pages as a browser does.

Application Scenarios

  • Load Testing: Simulate large numbers of concurrent users to test system performance under high load
  • Performance Testing: Measure system response time and throughput under various load conditions
  • Functional Testing: Verify application functional behavior
  • Stress Testing: Test system stability and fault tolerance under high pressure
  • Distributed Testing: Support coordinated load testing across multiple machines