Differences

This shows you the differences between two versions of the page.

Link to this comparison view

apache:load-testing-with-apache-jmeter [2015-07-09 09:34:02] (current)
rory.blanchard created
Line 1: Line 1:
 +====== Load Testing with Apache JMeter ======
  
 +Apache JMeter can help to give an idea of how a server will perform when under very high load. 
 +
 +<note warning>​Do not attempt this on a production server as it can severely impact performance</​note>​
 +
 +===== Installation (Windows) =====
 +
 +Install the latest version of **[[https://​java.com/​download|Java]]**
 +
 +Next, download **[[http://​mirror.symnds.com/​software/​Apache//​jmeter/​binaries/​apache-jmeter-2.13.zip|Apache JMeter]]**
 +
 +After unzipping the files, you'll go into the **Apache JMeter directory**,​ then the **bin** directory, and launch the program by running the file name **ApacheJMeter.jar**.
 +
 +You'll be given a test plan to start with.
 +\\
 +{{ :​apache:​jmeter1.png?​direct&​200 |}}
 +\\
 +Add a thread group by right clicking on **Test Plan**, then **Add**, then **Threads (User)**, then **Thread Group**.
 +\\
 +{{ :​apache:​jmeter2.png?​direct&​200 |}}
 +\\
 +Add an HTML request by right clicking on **Thread Group**, **Add**, **Sampler**,​ **HTTP Request**.
 +\\
 +{{ :​apache:​jmeter3.png?​direct&​200 |}}
 +\\
 +Add a graph so you can see the results. For this example we'll add a throughput graph. Right click on **Thread Group**, **Add, Listener**, **Graph Results**.
 +\\
 +{{ :​apache:​jmeter4.png?​direct&​200 |}}
 +\\
 +Go into the HTTP request, under **Server Name or IP** and add the full url that you are trying to test.
 +\\
 +{{ :​apache:​jmeter5.png?​direct&​200 |}}
 +\\
 +To change how many requests and how you want the test to go, open the **Thread group** section and modify it.
 +\\
 +{{ :​apache:​jmeter6.png?​direct&​200 |}}
 +\\
 +The loop count is either forever or a specific number of loops. ​
 +
 +Once you are ready to get started, Click on **Run**, then **Start**.
 +
 +\\
 +\\