Jmeter measure performance

From Wowww mediawiki

Jump to: navigation, search "Apache JMeter may be used to test performance both on static and dynamic resources (files, Servlets, Perl scripts, Java Objects, Data Bases and Queries, FTP Servers and more). It can be used to simulate a heavy load on a server, network or object to test its strength or to analyze overall performance under different load types."
Installation/usage steps:

  • Download the latest jMeter binary from
  • Extract the archive

Making a testscript

Make a testscript, by running in the bin directory (e.g. sh /opt/jakarta-jmeter-2.4/bin/ We are going to create an http proxy server to record all the gets from the site to be tested.
Add to Workbench (right click workbench)

  • Http proxy server (non-test elements), enter a free port
  • Cookie manager (config element

Add to testplan

  • Thread group (Threads users) and enter your test variables, eg: number of threads: 100, ramp-up: 40, loup-count: 10


Now we can enable the proxy-server by clicking on the http proxy server and after that, press the Start button.

Configure browser
Change your browsers internet connection settings and change/add the proxyserver as specified in the http proxy server setup.

Start browsing trough the pages you want to test, after that stop the http proxy server.
Inspect the requests in the threadgroup and delete some if required
Save the test-plan (File->save Test plan as)

We can use the testplan with:

java -jar /opt/jakarta-jmeter-2.4/bin/ApacheJMeter.jar -n -t /home/robbert/testplan.jmx -j /home/robbert/jmeter.log
Personal tools