JMeter Pressure measuring tool installation and use

Source: Internet
Author: User

Linux under JMeter installation:

1. Download JMeter
Official website Download the latest version:? http://jmeter.apache.org/download_jmeter.cgi, currently the latest version of Apache JMeter 2.13
Download binary package, using JMeter dependent JDK, we recommend installing JDK version 1.6 or above.
Installing JDK under Linux reference article: http://www.linuxeye.com/Linux/Linux-install-JDK.html

2. Installing JMeter

Unzip binary

Mkdir/usr/local/jmeter && cd/usr/local/jmeter?

Tar-xf?apache-jmeter-2.13.tar?

When you are finished, add the environment variables:

Vi/etc/profile

Add the following two lines:

Export jmeter= "/usr/local/jmeter/apache-jmeter-2.13"
Export Classpath= "$Jmeter/lib/ext/apachejmeter_core.jar:$jmeter/lib/ Jorphan.jar: $jmeter/lib/logkit-2.0.jar: $CLasspath "

After the add is complete, the following command makes the configuration effective:

Source/etc/profile

Windows under Installation:

Finished installing JDK, Finished unpacking JMeter can be run.

?

2. Start JMeter

If you need to modify your test plan, you can Linux Open as text, editing parameters such as number of threads, number of iterations, and so on.

first for the test plan TEST.JMX Create a new file that stores the test structure TEST.JTL .

in the JMeter of the bin directory to run the command:

? cd/usr/local/jmeter/apache-jmeter-2.13/bin/

Java-jar apachejmeter.jar-n-t test.jmx?-l TEST.JTL

Parameter description:

- N represents the Nogui Way to run a test plan

- T represents a test plan, followed by a test plan name

- L indicates the test result, followed by the test result file name

3 , view test results

appear End of Run indicates that the test plan has finished running. You can run JMeter on Windows to Open the test results file test.jtl.

?

JMeter installation under Windows:

Windowns installation JDK is similar to Linux under installation, this is not described here.

In the directory Apache-jmeter-2.13\bin can see a jmeter.bat file, double-click the file, that is, see JMeter Control Panel

1: Add a test plan:

2: Add Test content:

3: Add the result output:

Results of pressure measurement:

Label: Each JMeter element (for example, HTTP Request) has a name attribute, which shows the value of the Name property
#Samples: Indicates how many requests you have made in this test, and if you simulate 10 users, each user iterates 10 times, then this shows
Average: Average response time--the average response time of a single Request by default, or the average response time in Transaction when a Transaction Controller is used
Median: The median, which is the response time of 50% users, the response time of the 50% request is within this range if the response time is sorted from small to large order. The 90%/95%/99% of the back is the same meaning 90% line:90% the response time of the user
Note: For the meanings of 50% and 90% concurrent users, please refer to the following
http://www.cnblogs.com/jackei/archive/2006/11/11/557972.html
min: Minimum response time
Max: Maximum response time
error%: Number of requests with errors in this test/total number of requests
Throughput: Throughput--By default, indicates the number of requests completed per second (request per Second), which can be similar when Transaction Controller is used.LoadRunner Transaction per Second number of
kb/sec: The amount of data received from the server side per second, equivalent to throughput/sec in LoadRunner

JMeter Pressure measuring tool installation and use

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.