One: Introduction
Jmeter concurrent testing for the local load machine CPU and memory consumption is large, when the need to simulate thousands of concurrent users (equivalent to open thousands of of threads), the use of a single machine to simulate all concurrent users is somewhat inadequate, and even caused a Java memory overflow error. In order for
When interviewing testers, This is a good question: How do you define performance/load/stress testing? In many cases, people use them as the same terminologies that can be replaced by each other. However, the differences between them are quite large. This post is based on some of my own experiences. I wrote a simple comment on these three concepts. Of course, I also referred to some definitions in the test
)
Write information to the Jmeter.log file
Log.info ("log Information")
Get Property (props)
It is similar to vars, and the corresponding properties are defined in the file jmeter.properties
referencing external files (jar/class/java)
In addition, if you reference an external jar package, you can also configure it in test plan, click the test Plan node in jmeter, and you will see the following interface
, and the corresponding properties are defined in the file jmeter.properties
referencing external files (Jar/class/java)
In addition, if you reference an external jar package, you can also configure it in test plan, click the test Plan node in JMeter, and you will see the following interface to add the path of the jar package directly.Other CSV configuration components useCsv_data_set_config when sending multiple sets of the same request
PrefaceOn the face of it, JMeter seems to have little to do with this series of courses, but it actually plays an important role in many of the later scenarios: how do you know if you've modified some code or settings to improve or decrease the performance of your system? The Commercial Stress test tool LoadRunner is really big, but it is said that the cost is not cheap and the volume is not small, The current maximum version of the open source free s
, and the corresponding properties are defined in the file jmeter.properties
referencing external files (Jar/class/java)
In addition, if you reference an external jar package, you can also configure it in test plan, click the test Plan node in JMeter, and you will see the following interface to add the path of the jar package directly.Other CSV configuration components useCsv_data_set_config when sending multiple sets of the same request
JMeter Introduction
Script recording
Run JMeter for testing
JMeter Main Components Introduction
Parameterized settings
Dynamic Data Association
To run a jmeter script using the command line
Parsing jmeter
The previous approach to performing performance testing in Windows was the JMeter-a complete interface test script,Before Windows performs a performance test, there are 1 performance test scripts to start with.But is this performance test script directly available on Linux? Of course you can.When is that not possible? Parameterization is not possible, because a local. csv file needs to be read, and the path
simultaneously online.
Focus: How much (instead of how fast)
Capacity Test, usuallyDatabaseThe difference between capacity and load is that capacity focuses on large capacity without actual use.
The Capacity Test, load test, and strength test are described as follows:
Volume testing = large amounts of data
Load
Brief introduction
Apache JMeter is an open source tool for load testing and performance testing in 100% pure Java language development.
FunctionApache JMeter can perform performance tests on static/dynamic resources, simulating multiple users ' side-by-side re
JMeter is a performance testing tool. I personally think that he is a tool rather than a framework. JMeter supports a wide range of applications that require performance testing, such as files, Servlets, Perl scripts, Java Objects, Data Bases and Queries, FTP Servers ). One of the major advantages of
First, install the JMeter1, the last JMeter compressed package to a Linux server, such as:/opt directory2, decompression unzip Apache-jmeter-3.1.zip3. Configure Environment variables: vi/etc/profileAdd at the end:Export jmeter_home=/opt/apache-jmeter-3.1Export path= $JMETER _home/lib/ext/apachejmeter_core.jar: $
When using JMeter for performance testing, if the concurrency is large (for example, the most recent project needs to support 1000 concurrency), the configuration of a single computer (CPU and memory) may not be supported, and the functionality of distributed testing provided by JM
is a product of the Apache Jakarta project. JMeter is a desktop application based on Java TM Swing, designed for load testing and measuring system performance. Initially, it was designed to test the WEB application. But it was later expanded, and now you can use it to test the relational database (via JDBC TM). On JMeter's official site http://jakarta.apache.org
number of concurrent users, etc.) to view the operation behavior of the application system during peak usage, in this way, it can effectively discover a function hidden danger of the system, and whether the system has good fault tolerance and restorability. Stress tests are classified into stability stress tests for a long period of time (such as 24 hours or more) under high loads and destructive stress tests that cause system crashes under extreme loads.
Stress
Software IntroductionJMeter is a Java-developed, open-source, free, test tool used primarily for functional testing and performance testing (stress test/load testing), and for testing Restful APIs using JMeter.How to learn JMeter
The use of JMeter for load testing, using a single machine simulation test more than 1000 strokes of the concurrency is somewhat inadequate, in the course of execution, the JMeter itself will automatically shut down, to solve this problem, you can use distributed testing, ru
Jmeter is a powerful graphic interface stress testing tool. It is fully written in Java. There are many articles on the Internet about jmeter. I didn't want to write similar articles again, however, I found that some of the most critical settings and operations we will use in our tests are rarely written clearly. For example
JMeter stress testing
Overall goal:
Install the virtual machine, and install a LAMP (Linux + Apache + Mysql + PHP) to test the system, we recommend ECShop (http://www.ecshop.com), based on this Jmeter pressure test, the Jmeter test report is obtained after the test, and the CIMN (CPU, IO, Memory, and Network) performan
in the Web page or the application background interface development, it is generally necessary to test the development of the interface to correctly receive and return data, for a single test, The Postman plugin is a good Http request emulation tool. but postman can only simulate single-client requests, and for performance testing such as simulating multiuser concurrency, other tools are required, and a powerful J
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.