Apache JMeter is an open source Apache project. It is a pure Java application. Apache JMeter is used to load test, in order to analyze and measure the performance of services.
Download Apache JMeter from http://jmeter.apache.org/download_jmeter.cgi. Extract the files and go to the bin directory. Execute jmeter.bat
or jmeter.sh
.
- Open the Apache JMeter console.
Create a Test Plan
. - Right-click on the
Test Plan
and click onAdd
; selectThreads (Users)
. - Select
Thread Group
. - Provide
Thread Group name
. - In
Thread Group
properties, provideNumber of Threads
,Ramp-up Period
, andLoop Count
. - Right-click on
Thread Group
. Click onAdd
. Click onSampler
. Click onHTTP Request
. - In HTTP Request, provide
Server Name or IP
. In our case, it will be localhost or an IP address. - Give the
Port Number
where your web server is running.
- Select the
Get method
and provide a path to the load test:
Create an HTTPRequest in APache JMeter to configure Server Name, Port number, and method details
- Save...