spikesource hints'n'tips

Our Top Tags

                                       

Mailing List

Keep uptodate with the latest hints'n' tips as they are published by signing up to our mailing list.

Our RSS Feeds








Latest Linux News

Free Software in Education

Sunday, 24 May 2009
Free Software: "Free Software is political because it is strongly tied with a deep political question: that of education, and access to it."

A Great Multi-Platform Music Management Application: Jajuk

Sunday, 24 May 2009
Web Upd8: "Jajuk is a very comprehensive and feature rich Open Source music management software written in Java. The software program is therefore available for Windows, Linux and Apple Macintosh comp

Kiwi Imaging System - Forge your own operating system images in a matter of hours

Saturday, 23 May 2009
Dedoimedo: "Would you like to be able to create custom, ready-to-use operating system images that can be used as VMware images, Xen virtual machines or live DVDs or booted from USB sticks? Would you l

Linux Myth: No Simple, Easy Database Software

Saturday, 23 May 2009
The ERACC Web Log: "In this installment of my Linux Myth series I take aim at the GNU/Linux database nay-sayers, and shoot them down."

Finding the right open-source savvy lawyer

Saturday, 23 May 2009
Practical Technology: "Some days, like it or not, you need a lawyer. For most business purposes, picking the right law firm isn’t usually that big of a deal"

Latest Digg Entries

How to install JMeter and use it for testing

posted Sunday, 11 September 2005

JMeter - Getting started

  1. Download the latest production release from http://jakarta.apache.org/builds/jakarta-jmeter/release/
  2. Install it - simply unzip the zip/tar file into the directory where you want JMeter to be installed
  3. Requirements: JDK1.4 or higher installed and JAVA_HOME environment variable set
  4. To run JMeter, run the jmeter.bat (for Windows) or jmeter (for Linux/Unix) file, which will be under bin directory. For testing from behind a firewall/proxy server, start jmeter with the required command line parameters (proxy server IP, port number, etc) as follows:
    jmeter -H my.proxy.server -P 8000 -u username -a password
  5. To start testing, open an existing script (*.jmx) file and click Start under Run menu. JMeter lights up a green square in the upper-right-hand corner to indicate if a test is currently running.
  6. Click any one of the Listeners such as Assertion Results to see the test results. Alternatively you can configure it to store in a file with extension, jtl, as an XML document.

JMeter - Elements of a Test Plan

  • ThreadGroup is the starting point of any test plan, all elements of a test plan must be under a thread group (number of threads, number of times). Each thread represents a user. For functional testing, number of threads can be one.
  • Samplers - a type of controller - used to send requests to a server (e.g, HTTP Request) - JMeter sends requests in the order that they appear in the test plan (tree).
  • Logic Controllers - another type of controller - logic that JMeter uses to decide when to send requests.
  • Listeners provide access to the information JMeter gathers about the test cases while JMeter runs (e.g., Assertion Results, View Results Tree).
  • Assertions - to assert facts about responses received (e.g., Response Assertion that checks the text in the response).
  • Configuration Elements - it can add to or modify requests.
  • After adding all the required elements, save the test plan and then run it.

JMeter - Building a Web Test Plan

  • Add Users - Add a Thread group specifying the number of threads, number of times, etc. Each thread represents a user. For functional testing, number of threads can be one.
  • Add Default HTTP Request Properties.
  • Add Cookie Support - add an HTTP Cookie Manager to each Thread Group, otherwise JMeter will ignore cookies and lose session data.
  • Add HTTP Requests - JMeter sends requests in the order that they appear in the tree.
  • Add Assertions - to assert facts about responses received (e.g., Response Assertion that checks the text in the response).
  • Add a Listener to View Store the Test Results.
  • After adding all the elements, save the test plan and then run it.

tags:    

links: digg this    del.icio.us    technorati    




1. shafee mohammed left...
Thursday, 1 December 2005 8:56 am

plz guide me to use jmeter without any problem


2. santosh kumar singh left...
Friday, 9 December 2005 6:24 am

I requared the full information of jmeter


3. sowmiya left...
Tuesday, 9 May 2006 10:35 am

i would like to know how to record scripts in jmeter?...i need the answer as soon as possible...


4. anni left...
Monday, 22 May 2006 6:39 am

how to install Jmeter and use it to test the application


5. John left...
Monday, 22 May 2006 8:37 am

gdgdg


6. Aneesh left...
Friday, 26 May 2006 9:06 am

How to write scripts


7. Riza left...
Friday, 9 June 2006 4:31 pm

I created a script for 1 user. The timing is relatively low than when i do it manually. Why is the timing skewed in jmeter?


8. zer0effect left...
Friday, 23 June 2006 3:39 pm

Great Site


9. igor left...
Friday, 14 July 2006 7:47 am

very unusefull


10. Manish Sohaney left...
Thursday, 20 July 2006 6:06 pm

Good tutorial on JMeter: http://www.onjava.com/pub/a/onjava/2003/01/15/jmeter.html


11. ram left...
Monday, 13 November 2006 9:55 am

I am running with many threads... I want to give different parameters for different threads


12. Mehul Patel left...
Friday, 10 August 2007 12:25 pm

I want to know that whether Jmeter can be used for application that is developed in Jave or it can also be used for application that is developed in .Net


13. Kagi left...
Friday, 28 August 2009 3:16 am

I wonder how to use JMeter to run a series of 'dig' from my localhost. I'm currently using Unix Sun OS 2.10. This is because I wanna benchmark what is the total time taken to dig, say 1000 records, over 5 secs, for example. Please e-mail me at rockfellar64@hotmail.com.

Thanks!


14. shobhit jain left...
Tuesday, 3 November 2009 5:46 am

http://jakarta.apache.org/builds/jakarta-jmeter/release/ this link is not working. kindly let me know how can i download Jmeter.


Related Posts

How can I start a Java process and retain its process id?

Monday, 2 October 2006 2:41 P GMT
How can I start a Java process and retain its process id?

Handling different Java runtimes on a single machine

Thursday, 14 September 2006 10:48 A GMT
This entry takes a quick look at how you can best utilise different Java JVMs on the linux using a couple of techniques.

Invoking Jetty as an embedded server

Wednesday, 16 August 2006 2:24 P GMT
Ever wondered how to invoke Jetty as an embedded server? David Yu from the Jetty Mailing list recently posted a way you can do this.

How to install JMeter and use it for testing

Sunday, 11 September 2005 8:00 A GMT
Apache JMeter is a 100% pure Java desktop application designed to test performance on static/dynamic resources such as static files, Servlets, CGI scripts. JMeter can also be used to regression test application by creating test scripts.

Introduction to JVM crashes

Friday, 9 September 2005 10:33 A GMT
Things to look for when checking a JVM crash

Configuring JGroups to avoid using multicasting

Wednesday, 31 August 2005 7:54 A GMT
JGroups - the cluster library used by Jboss, uses multicasting for cluster communication. This article discusses configuration of JGroups so that it does not use multi casting.

How to import a certificate from file in Java using keytool

Wednesday, 17 August 2005 4:56 P GMT
How to import a certificate from file in Java using keytool