JMeter pressure test

Source: Internet
Author: User

I. What is a stress test

Stress testing: Test the efficiency of the system under different pressure conditions and the pressure conditions the system can withstand.

Example: 5000 people at the same time to the curtain system to purchase curtains, the system speed or processing efficiency is slow or whether the system will crash.

Two. Pressure test tools

1. LoadRunner

LoadRunner is a load test tool that predicts the behavior and performance of the system. LoadRunner is able to test the entire enterprise architecture by identifying and locating problems in a way that simulates the concurrent load and real-time performance monitoring of tens of thousands of users. By using LoadRunner, businesses can minimize test time, optimize performance, and accelerate the release cycle of application systems. LoadRunner is an automated load testing tool for a variety of architectures that can predict system behavior and optimize system performance.

Software Learning use Address: http://www.ltesting.net/ceshi/zhuanti/2012/0208/204053.html

2. Jmete r pressure Test Tool

Apache JMeter is a Java-based desktop application developed by the Apache organization. You can complete the stress tests of the Web Server stress test database server and the JMS service server tests.

Official address: http://jmeter.apache.org/download_jmeter.cgi

The JMeter architecture, like the LoadRunner principle, is a process of monitoring the results of server feedback through intermediate proxies, monitor & collect commands that are found by concurrent clients, generate scripts, and then send them to the application server.

Jmeter is a very popular performance testing tool, although compared with LoadRunner has a lot of shortcomings, such as: It results analysis ability is not loadrunner detailed; it has many advantages:

Open source, he is an open source free software, use it you do not have to pay any fees,

Compact, compared to the size of LR (the newest LR11 will be nearly 4GB), it is very small and requires no installation, but requires a JDK environment because it is a tool developed using Java.

Powerful, JMeter design is just a simple Web performance testing tools, but after a period of update extension, can now complete database, FTP, LDAP, WebService and so on, try. Because of its open source nature, of course you can also expand its function according to your own needs.

Three. Jmeter Software use

1.Jmeter basic interface and component concepts

Now I see the main interface of JMeter. The following describes the functions and roles of the main components in JMeter, first we look at the concept of JMeter component classification

1.Threads: This component is mainly used to control the number of threads that are generated when the jmeter is concurrent, and there is only one component (thread group) under its next-level menu, so you can understand that each thread is a virtual user. All other types of components must be child nodes of the (thread group) node.

2. Hive: Working with the sample component, mainly used to configure how sample to initiate a request to access the server, the main feature of this thing is that some of the common configuration of the sample can be placed within an element to facilitate management, configuration units are scoped. The same relationship between the scope and the tree, the greater the scope of the ancestor node, the closer the leaf node

The smaller the scope, the higher the configuration of the parent scope can be replicated.

3. Timer: This is mainly used to adjust (thread group), control the thread every time the test logic run (for example, make a request) interval. Of course, there are many types of timers below, their main function is to adjust the time interval, but the strategy between the components are very different.

4. The predecessor processor and the post processor resemble a hook that executes some script logic before and after the test is executed. This component I have not used specifically, but the general function is this, non-focus components.

5.Sample: May not appear in the Sample, need to be added on (threadgroup), see figure

Sample indicates that the client sends a request to the server in some format or specification, so we see a variety of sample, which has two HTTP-related. Generally with httpclient function and efficiency will be stronger.

6. Assertion: Means to determine whether the returned result satisfies expectations after the request has been sent for sample.

7. Listener: This component is different from the usual in the Web programming of the kind of listener, he is accompanied by the Jemeter test run to crawl data from the runtime of a component, often using the aggregation report component, from the inside can be counted to test the TPS, response time and other key test data.

JMeter pressure test

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.