In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
How the Jmeter system is introduced, I believe that many inexperienced people do not know what to do about it. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
Stress testing tool contact with ab,ab in the actual project is a common and direct tool, which jmeter has tested before.
A brief introduction to jmeter
Jmeter is a lightweight test development platform dedicated to functional testing and stress testing. In most cases, it is used for stress testing. Functionally, the whole platform implements many network test components related to the Internet, while retaining strong scalability for some non-standard test scenarios.
JMeter is a 100% pure JAVA desktop application designed to test client / server architecture (such as web applications). It can be used to test the performance of static and dynamic resources, such as static files, Java Servlet,CGI Scripts,Java Object, databases, FTP servers, and so on. JMeter can be used to simulate large loads to test the robustness of a server, network, or object or to analyze overall performance under different loads.
Like LoadRunner, jmeter also provides the ability to record and generate test scripts using a local Proxy Server (proxy server). We can also use Badboy to record and generate JMeter scripts.
1) download address: http://jmeter.apache.org/download_jmeter.cgi
Note: download the zip package under Binaries and download the tar package for Linux version
2) unzip the downloaded Jmeter file and open / bin/jmeter.bat
Modify the attribute of / bin/jmeter.properties file: sampleresult.default.encoding=UTF-8 (prevent garbled)
# find the bin directory under jmeter and open the jmeter.properties file
# Line 37 is modified to read
# language=zh_CN
# remove the previous #, and the Chinese interface will be opened later
Run the interface correctly
3) configure environment variables (provided that JDK is installed on the computer and the specific steps are not described)
4) install Jmeter on other platforms, which is the same as the Windows platform, except for the entry files, such as / bin/jmeter.sh under linux platform.
The directory structure after installation is as follows:
/ bin directory (introduction to common files)
Examples: the directory contains Jmeter usage examples
ApacheJMeter.jar:JMeter source code package
Startup file under jmeter.bat:windows
Startup file under jmeter.sh:Linux
Jmeter.log:Jmeter run log file
Jmeter.properties:Jmeter profile
Start the load generator service file under jmeter-server.bat:windows
Start the load generator file under jmeter-server:Linux
/ docs directory-- Jmeter help documentation
/ extras directory-provides support files for Ant, but can also be used for continuous integration
/ lib directory-stores jar packages that Jmeter depends on, and installs plug-ins in this directory (all jar packages introduced by jmeter are placed in this directory)
/ licenses directory-- Software license file, never mind
/ printable_docs directory-- Jmeter user's manual
Main test components of JMeter
Test plan: the starting point for testing with JMeter, which is the container for other JMeter test components.
Thread group: represents a certain number of concurrent users, which can be used to simulate concurrent users sending requests. The actual request content is defined in Sampler and is contained by the thread group.
Listener: responsible for collecting test results and is also told how the results are displayed.
Logic controller: you can customize the behavior logic of JMeter to send requests, which can be used in conjunction with Sampler to simulate complex request sequences.
Assertion: can be used to determine whether the result of the request response is as expected by the user. It can be used to isolate the problem domain, that is, to perform stress tests while ensuring that the function is correct. This limitation is very useful for effective testing.
Configuration components: maintain the configuration information needed by Sampler and modify the content of the request according to the actual needs.
Pre-processor and post-processor: responsible for completing the work before and after generating the request. The front processor is often used to modify the settings of the request, while the post processor is often used to process the response data.
Timer: responsible for defining the delay interval between requests.
After reading the above, have you mastered how to get started with the Jmeter system? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.