2017-10-25 21:15:15 +08:00
< h1 align = "center" > < img src = "https://jmeter.apache.org/images/logo.svg" alt = "Apache JMeter logo" / > < / h1 >
2017-10-26 02:39:13 +08:00
< h4 align = "center" > Open Source application designed to load test applications and measure performance. By The Apache Software Foundation< / h4 >
2017-10-25 21:12:04 +08:00
< br >
2017-05-07 05:29:22 +08:00
2019-06-17 01:34:31 +08:00
[](https://travis-ci.org/apache/jmeter/)
[](https://codecov.io/gh/apache/jmeter)
2019-08-03 19:10:10 +08:00
[](http://www.apache.org/licenses/LICENSE-2.0.html)
2018-01-22 05:33:48 +08:00
[](https://stackoverflow.com/questions/tagged/jmeter)
2018-02-12 06:40:42 +08:00
[](https://maven-badges.herokuapp.com/maven-central/org.apache.jmeter/ApacheJMeter)
[](https://www.javadoc.io/doc/org.apache.jmeter/ApacheJMeter_core)
2018-01-22 05:33:48 +08:00
[](https://twitter.com/intent/tweet?text=Powerful%20load%20testing%20with%20Apache%20JMeter:& url=https://jmeter.apache.org)
2016-09-28 01:04:21 +08:00
2019-08-03 19:05:38 +08:00
## What is it
2016-09-28 01:04:21 +08:00
2017-12-09 23:07:01 +08:00
Apache JMeter may be used to test performance both on static and dynamic resources, Web dynamic applications.
It can be used to 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.
2016-09-28 01:04:21 +08:00
2019-06-17 01:34:31 +08:00

2018-01-21 22:19:38 +08:00
2016-09-28 01:04:21 +08:00
Apache JMeter features include:
2019-08-03 19:05:38 +08:00
Ability to load and performance test many different applications/server/protocol types:
- Web - HTTP, HTTPS (Java, NodeJS, PHP, ASP.NET,...)
- 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
2017-12-09 23:07:01 +08:00
Full featured Test IDE that allows fast Test Plan **recording (from Browsers or native applications), building and debugging.**
2017-12-09 23:08:36 +08:00
[**Command-line mode (Non GUI / headless mode)** ](http://jmeter.apache.org/usermanual/get-started.html#non_gui ) to load test from any Java compatible OS (Linux, Windows, Mac OSX, ...)
2017-12-09 23:07:01 +08:00
2017-12-09 23:08:36 +08:00
A complete and [**ready to present dynamic HTML report** ](http://jmeter.apache.org/usermanual/generating-dashboard.html )
2017-12-09 23:07:01 +08:00
2019-06-17 01:34:31 +08:00

2018-01-21 22:29:14 +08:00
2017-12-09 23:07:01 +08:00
[**Live reporting** ](http://jmeter.apache.org/usermanual/realtime-results.html ) into 3rd party databases like InfluxDB or Graphite
2019-06-17 01:34:31 +08:00

2018-01-21 22:29:14 +08:00
2017-12-09 23:07:01 +08:00
Easy correlation through ability to extract data from most popular response formats, [**HTML** ](http://jmeter.apache.org/usermanual/component_reference.html#CSS/JQuery_Extractor ), [**JSON** ](http://jmeter.apache.org/usermanual/component_reference.html#JSON_Extractor ), [**XML** ](http://jmeter.apache.org/usermanual/component_reference.html#XPath_Extractor ) or [**any textual format** ](http://jmeter.apache.org/usermanual/component_reference.html#Regular_Expression_Extractor )
Complete portability and 100% Java purity
2016-09-28 01:04:21 +08:00
2017-02-06 04:50:04 +08:00
Full multi-threading framework allows concurrent sampling by many threads
2016-09-28 01:04:21 +08:00
and simultaneous sampling of different functions by separate thread groups.
2017-12-09 23:07:01 +08:00
2016-09-28 01:04:21 +08:00
Caching and offline analysis/replaying of test results.
Highly Extensible core:
2019-08-03 19:05:38 +08:00
- Pluggable Samplers allow unlimited testing capabilities.
- **Scriptable Samplers** (JSR223-compatible languages like Groovy)
- Several load statistics may be chosen with **pluggable tiers** .
- Data analysis and **visualization plugins** allow great exensibility and personalization.
- Functions can be used to provide dynamic input to a test orprovide data manipulation.
- Easy Continuous Integration through 3rd party Open Source libraries for Maven, Gradle and Jenkins
2016-09-28 01:04:21 +08:00
## The Latest Version
2019-08-03 19:05:38 +08:00
Details of the latest version can be found on the [JMeter Apache
Project web site](https://jmeter.apache.org/)
2016-09-28 01:04:21 +08:00
## Requirements
The following requirements exist for running Apache JMeter:
2019-08-03 19:05:38 +08:00
- Java Interpreter:
2016-09-28 01:04:21 +08:00
2019-08-03 19:05:38 +08:00
A fully compliant Java 8 Runtime Environment is required
for Apache JMeter to execute. A JDK with `keytool` utility is better suited
for Recording HTTPS websites.
2016-09-28 01:04:21 +08:00
2019-08-03 19:05:38 +08:00
- Optional jars:
2016-09-28 01:04:21 +08:00
2019-08-03 19:05:38 +08:00
Some jars are not included with JMeter.
If required, these should be downloaded and placed in he ib directory
- JDBC - available from the database supplier
- JMS - available from the JMS provider
- [Bouncy Castle ](http://www.bouncycastle.org/test_releases.html ) -
only needed for SMIME Assertion
2016-09-28 01:04:21 +08:00
2019-08-03 19:05:38 +08:00
- Java Compiler (*OPTIONAL*):
2016-09-28 01:04:21 +08:00
2019-08-03 19:05:38 +08:00
A Java compiler is not needed since the distribution cludes a
precompiled Java binary archive.
> **Note** that a compiler is required to build plugins for Apache JMeter.
2016-09-28 01:04:21 +08:00
## Installation Instructions
2019-08-03 19:05:38 +08:00
> **Note** that spaces in directory names can cause problems.
2016-09-28 01:04:21 +08:00
2019-08-03 19:05:38 +08:00
- Release builds
2016-09-28 01:04:21 +08:00
2019-08-03 19:05:38 +08:00
Unpack the binary archive into a suitable directory structure.
2016-09-28 01:04:21 +08:00
## Running JMeter
2017-02-06 04:50:04 +08:00
1. Change to the `bin` directory
2. Run the `jmeter` (Un\*x) or `jmeter.bat` (Windows) file.
2016-09-28 01:04:21 +08:00
2017-02-06 04:50:04 +08:00
### Windows
2016-09-28 01:04:21 +08:00
2017-02-06 04:50:04 +08:00
For Windows there are also some other scripts which you can drag-and-drop
a JMX file onto:
2016-09-28 01:04:21 +08:00
2019-08-03 19:05:38 +08:00
- `jmeter-n.cmd` - runs the file as a non-GUI test
- `jmeter-n-r.cmd` - runs the file as a non-GUI remote (client-server) test
- `jmeter-t.cmd` - loads the file ready to run it as a GUI test
2016-09-28 01:04:21 +08:00
## Documentation
The documentation available as of the date of this release is
2019-08-03 19:05:38 +08:00
also included, in HTML format, in the [printable_docs ](printable_docs ) directory,
and it may be browsed starting from the file called [index.html ](printable_docs/index.html ).
2016-09-28 01:04:21 +08:00
2017-08-27 01:55:35 +08:00
## Reporting a bug/enhancement
2017-10-26 02:42:45 +08:00
See [Issue Tracking ](https://jmeter.apache.org/issues.html )
2017-08-27 01:55:35 +08:00
2016-09-28 01:04:21 +08:00
## Build instructions
2017-02-06 04:50:04 +08:00
### Release builds
2016-09-28 01:04:21 +08:00
2017-02-06 04:50:04 +08:00
Unpack the source archive into a suitable directory structure.
Most of the 3rd party library files can be extracted from the binary archive
by unpacking it into the same directory structure.
2016-09-28 01:04:21 +08:00
Any optional jars (see above) should be placed in `lib/opt` and/or `lib` .
2017-02-06 04:50:04 +08:00
Jars in `lib/opt` will be used for building JMeter and running the unit tests,
2016-09-28 01:04:21 +08:00
but won't be used at run-time.
_This is useful for testing what happens if the optional jars are not
downloaded by other JMeter users._
2017-03-24 04:44:50 +08:00
If you are behind a proxy, you can set a few build properties in `build-local.properties` for ant to use the proxy:
2017-03-18 05:20:45 +08:00
2019-08-03 19:05:38 +08:00
```properties
2017-03-25 02:58:07 +08:00
proxy.use=true
2017-03-24 04:44:50 +08:00
proxy.host=proxy.example.invalid
proxy.port=8080
proxy.user=your_user_name
proxy.pass=your_password
2017-03-18 05:20:45 +08:00
```
2017-03-24 05:07:53 +08:00
You might also want to skip some tests - that are failing without proper access to the internet - by adding some more
properties into `build-local.properties` :
2019-08-03 19:05:38 +08:00
```properties
2017-03-24 05:07:53 +08:00
skip.bug52310=true
skip.bug60607=true
skip.batchtest_Http4ImplPreemptiveBasicAuth=true
skip.batchtest_SlowCharsFeature=true
skip.batchtest_TestKeepAlive=true
2017-05-07 05:31:40 +08:00
skip.batchtest_ResponseDecompression=true
2017-03-24 05:07:53 +08:00
skip.test_http=true
skip.test_TestDNSCacheManager.testWithCustomResolverAnd1Server=true
```
2017-02-06 04:50:04 +08:00
### Test builds
2019-08-03 19:05:38 +08:00
JMeter is built using Gradle.
2016-09-28 01:04:21 +08:00
Change to the top-level directory and issue the command:
```sh
2019-08-03 19:05:38 +08:00
./gradlew build
2016-09-28 01:04:21 +08:00
```
2017-02-06 04:50:04 +08:00
This will compile the application and enable you to run `jmeter` from the `bin`
2016-09-28 01:04:21 +08:00
directory.
```sh
2019-08-03 19:05:38 +08:00
./gradlew check [-Djava.awt.headless=true]
2016-09-28 01:04:21 +08:00
```
This will compile and run the unit tests.
The optional property definition is required if the system
does not have a suitable GUI display.
## Developer information
2019-08-03 19:05:38 +08:00
Building and contributing is explained in details at [building JMeter ](https://jmeter.apache.org/building.html )
2017-10-26 02:42:45 +08:00
2019-08-03 19:05:38 +08:00
The code is maintained at GitHub:
2016-09-28 01:04:21 +08:00
2019-08-03 19:05:38 +08:00
- < https: // github . com / apache / jmeter >
- < https: // gitbox . apache . org / repos / asf / jmeter . git >
2016-09-28 01:04:21 +08:00
2017-02-06 04:50:04 +08:00
## Licensing and legal information
2016-09-28 01:04:21 +08:00
2017-02-06 04:50:04 +08:00
For legal and licensing information, please see the following files:
2016-09-28 01:04:21 +08:00
2019-08-03 19:05:38 +08:00
- [LICENSE ](LICENSE )
2016-09-28 01:04:21 +08:00
2019-08-03 19:05:38 +08:00
- [NOTICE ](NOTICE )
2016-09-28 01:04:21 +08:00
## Cryptographic Software Notice
This distribution may include software that has been designed for use
with cryptographic software. The country in which you currently reside
may have restrictions on the import, possession, use, and/or re-export
to another country, of encryption software. BEFORE using any encryption
software, please check your country's laws, regulations and policies
concerning the import, possession, or use, and re-export of encryption
software, to see if this is permitted. See < http: / / www . wassenaar . org / >
for more information.
The U.S. Government Department of Commerce, Bureau of Industry and
Security (BIS), has classified this software as Export Commodity
Control Number (ECCN) 5D002.C.1, which includes information security
software using or performing cryptographic functions with asymmetric
algorithms. The form and manner of this Apache Software Foundation
distribution makes it eligible for export under the License Exception
ENC Technology Software Unrestricted (TSU) exception (see the BIS
Export Administration Regulations, Section 740.13) for both object
code and source code.
The following provides more details on the included software that
may be subject to export controls on cryptographic software:
2019-08-03 19:05:38 +08:00
Apache JMeter interfaces with the
Java Secure Socket Extension (JSSE) API to provide
2016-09-28 01:04:21 +08:00
2019-08-03 19:05:38 +08:00
- HTTPS support
2016-09-28 01:04:21 +08:00
2019-08-03 19:05:38 +08:00
Apache JMeter interfaces (via Apache HttpClient4) with the
Java Cryptography Extension (JCE) API to provide
2016-09-28 01:04:21 +08:00
2019-08-03 19:05:38 +08:00
- NTLM authentication
2016-09-28 01:04:21 +08:00
2019-08-03 19:05:38 +08:00
Apache JMeter does not include any implementation of JSSE or JCE.
2016-09-28 01:04:21 +08:00
2019-05-21 16:36:51 +08:00
**Thank you for using Apache JMeter.**