In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how to realize the performance test of JMeter". In the daily operation, I believe that many people have doubts about how to realize the performance test of JMeter. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubt of "how to realize the performance test of JMeter". Next, please follow the editor to study!
QPS interpretation
QPS: Query Per Second query rate per second. Is the number of queries that a query server can handle per second. On the Internet, the performance of machines that serve as domain name system servers is often measured by query rates per second.
In order to achieve the desired test goal, it is necessary to establish a test plan in jmeter. Because this test only requires the completion of two blog home page requests for fnng.cnblogs.com and tt-topia.rhcloud.com, you only need to use HTTP Request Sampler.
Set up a test plan
When jmeter is started, jmeter automatically generates an empty test plan based on which users can build their own test plans.
Add thread group
A performance test request load is based on a thread group. A test plan must have a thread group. Adding thread groups to the test plan is very simple. Select the thread group in the right-click pop-down menu of the test plan (add-> Threads (Users)-> thread group).
Each test plan in jmeter needs to contain at least one thread group, and of course you can create multiple thread groups in one plan, so what is the order of execution between multiple thread groups (serial or parallel)? Under the test plan, multiple threads are executed in parallel, that is, these thread groups are initialized and execute the Sampler under the thread group at the same time.
Run the script
After adding the aggregation report, let's run the script and introduce the parameters of the aggregation report later.
Before we run the script, let's take a look at the parameter settings for each component:
-
Thread group:
Number of threads: 20
Preparation time: 10
Number of cycles: 10
-
HTTP request:
Name: fnng.cnblogs.com.
Server name or IP: fnng.cnblogs.com
Port number: 80
Implementation: java
Protocol: http
Method: GET
Path: /
-
Constant throughput timer:
Target throughput (in samples per minute): 1200.0
Calculate Throughput based on: All active threads
-
Click the run button on the toolbar, or click run-> start on the menu bar or use the shortcut key ctrl+r to run the program.
Aggregate report analysis
View the running results of the aggregate report:
At this point, the study on "how to implement the performance testing of JMeter" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.