How I may help
LinkedIn Profile Email me!
Call me using Skype client on your machine

JMeter Load Testing

This contains an analysis of JMeter, the popular open-source Java-based tool for load testing, in contrast with LoadRunner (which precedes it). This page aims to succintly describe how to install, configure, and use JMeter on Windows, minus the attitude and sales generalizations.

See related pages on load testing tools, Testing

 

Topics this page:

  • What is JMeter?
  • Popularity Trends
  • Country Popularity
  • People
  • Architecture
  • Installation
  • Folders/Env Vars
  • Invoke Commands
  • Properties
  • Test Plans
  • Test Elements
  • JUnit
  • Extending JMeter
  • Custom Monitoring
  • Your comments?
  •  

    RSS XML feed for load testers RSS preview for load testers Site Map List all pages on this site 
    About this site About this site 
    Go to first topic Go to Bottom of this page


    Set screen What Is JMeter?

    Set screen Popularity Trends

    Set screen Countries

    Set screen People Behind the Social of JMeter

    Set screen JMeter Architecture

    Set screen Download and Installation

    Set screen Folders and Environment Variables

    Set screen jmeter.bat Invocation Commands

    Set screen jmeter.properties

    Set screen Test Plan .jmx files

    Set screen My Sample .jmx

    Set screen Test Elements

    Set screen Data Parametization

    Set screen JUnit Integration

    Set screen Extending JMeter

    Set screen Run Results Graphs

    Set screen Custom Monitoring of JMeter

      JMeter collects its own metrics from servers under test (such as CPU utilization), so if servers already have monitors in place, it's better to run JMeter without its normal monitors, and have the monitoring software monitor how many thread groups (vusers) is running.

      Here's how to instrument JMeter for the Intersperse console.

      1. Discover jmeter mbeans using the Intersperse JMX Remote Agent.

      2. Open the Jmeter.bat file and add a JAVA_OPTIONS environment variable that uses "-D" to specify several Java variables to JMeter at start-up:

          set JAVA_OPTIONS=%JAVA_OPTIONS%
          -Dcom.sun.management.jmxremote
          -Dcom.sun.management.jmxremote.port=8004
          -Dcom.sun.management.jmxremote.authenticate=false
          -Dcom.sun.management.jmxremote.ssl=false

      3. After adding %JAVA_OPTIONS% in Jmeter.bat file, the command to invoke Java should look like this:

          %JM_START% %JM_LAUNCH% %JVM_ARGS% %ARGS% %JAVA_OPTIONS% -jar ApacheJMeter.jar %JMETER_CMD_LINE_ARGS%

      4. Install the Intersperse JMXRemoteAgent into a separate directory on the JMeter machine:
        Launch the Intersperse Installer. Choose "Custom Install" and only select "JMXRemoteAgent".
      5. Invoke the JMX Remote Agent webconsole and add information about the JMeter server. This is done instead of manually editing the JMXRemoteAgent install directory file intersperse.jmxremoteagent.jsr160.servers within .... JMXRemoteAgent\config\JMXRemoteAgent\ where "host" is the machine hosting JMeter:

        remote.1.server.url=service\:jmx\:rmi\:///jndi/rmi\://host\:8004/jmxrmi
        remote.1.server.name=JMeter

        Note: The "\:" escape characters are automatically converted.

      6. Save the file and exit.
      7. Start the Jmeter application using jmeter.bat.
      8. Start the Intesperse JMX Remote Agent.
      9. On the Intersperse Console, view the Jmeter Mbeans Thread count, by navigating to "Threading Mbean" along with other Mbean "OS Monitoring" (such as cpu usage and memory usage).

    Set screen Issues and Criticisms