当前位置:网站首页>JMeter stress testing tutorial
JMeter stress testing tutorial
2022-06-23 16:37:00 【User 7353950】
Jmeter It's a very useful stress testing tool .Jmeter For lightweight stress testing , Very suitable , It only takes ten minutes , You can write the scripts that you need for stress testing .
Read the directory
- What is stress testing
- Common tools for stress testing
- The steps to do the stress test are as follows :
- An example of stress testing in this paper
- First step : Use CSV Data Set Config To parameterize
- The second step : add to HTTP Request.
- The third step : Use Thread Group, Control how many users are simulated
- Step four : add to Summary Report Used to view test results
- Step five : Run it
What is stress testing
seeing the name of a thing one thinks of its function : Pressure test , Namely The system being tested , Under certain visiting pressure , See if the program runs stably / Is the server running stably ( Resource usage )
such as :2000 Users go to a shopping website at the same time , Will these users be slow to open pages , Or whether the website will crash
Common tools for stress testing
Do a stress test , Generally use tools , There is no way to do it manually . The most commonly used tool is LoadRunner, however LoadRunner After all, it's paid software , And the use is also more complex . Now more and more people begin to use it Jmeter To do a stress test . free , And it's very simple to use .
The steps to do the stress test are as follows :
1. Write the script Or record a script
2. Use user-defined parameters
3. Scene design
4. Using the controller , To control How many users are simulated .
5. Using a monitor , Check the test results
An example of stress testing in this paper
The example given in this paper is : Use... On a computer Jmeter simulation 200 Users , Use at the same time bing Search for different keywords , Check whether the return time of the page is within the normal range .
First step : Use CSV Data Set Config To parameterize
First, let's put what we need to test 2 Put two parameters in txt In file ,
Create a new one data.txt file , Enter some data , There are two data in a row , Separate with commas .
start-up Jmeter, First add a Thread Group, And then add a CSV Data Set Config (Add -> Config Element -> CSV Data Set Config)
The second step : add to HTTP Request.
We add http request , send out get
choice Thread Group Right click (Add ->Sampler -> HTTP Request), The data to be filled in are as follows :
The third step : Use Thread Group, Control how many users are simulated
Choose Thread Group
Number of Threads(users): A user occupies a thread , 200 A thread is a simulation 200 Users
Ramp-Up Period(in seconds): Set how long it will take for the thread to start completely . If the number of threads is 200 , The preparation time is 10 , You need to 1 Seconds start 20 Threads . It starts every second 20 Threads .
Loop Count: The number of times each thread sends a request . If the number of threads is 200 , The number of cycles is 10 , So each thread sends 10 Requests . The total number of requests is 200*10=2000 . If I check that “ forever ”, Then all the threads will keep sending requests , Until you choose to stop the script .
Step four : add to Summary Report Used to view test results
Choose Thread Group Right click (Add -> Listener -> Summary Report)
Step five : Run it
up to now , The script is all written , Let's run , How to see the test results
边栏推荐
- 机器人方向与高考选专业的一些误区
- How is it cheaper to open a stock account? Is it safe to open an account online now?
- Medical image segmentation website
- stylegan3:alias-free generative adversarial networks
- Mathematical analysis_ Certification_ Chapter 1: the union of countable sets is countable
- Focus: zk-snark Technology
- 出现Identify and stop the process that‘s listening on port 8080 or configure this application等解决方法
- 提高效率 Or 增加成本,开发人员应如何理解结对编程?
- R语言ggplot2可视化水平箱图(Horizontal boxplot with coord_flip)、并添加抖动数据点显示分布情况(jittered points)
- 谈谈redis缓存击穿透和缓存击穿的区别,以及它们所引起的雪崩效应
猜你喜欢

Block, non block, multiplexing, synchronous, asynchronous, bio, NiO, AIO

腾讯的技术牛人们,是如何完成全面上云这件事儿的?

【历史上的今天】6 月 23 日:图灵诞生日;互联网奠基人出生;Reddit 上线

读书郎通过上市聆讯:平板业务毛利率走低,2021年利润同比下滑11%

Safe and comfortable, a new generation of Qijun carefully interprets the love of the old father

数学分析_证明_第1章:可数个可数集之并为可数集

聚焦:ZK-SNARK 技术

Opengauss database source code analysis series articles -- detailed explanation of dense equivalent query technology (Part 2)

NPM install problem solving (NVM installation and use)
![Leetcode: question d'entrevue 08.13. Empiler la boîte [DFS en haut + mémoire ou tri en bas + DP]](/img/22/220e802da7543c2b14b7057e4458b7.png)
Leetcode: question d'entrevue 08.13. Empiler la boîte [DFS en haut + mémoire ou tri en bas + DP]
随机推荐
NPM install problem solving (NVM installation and use)
亚朵更新招股书:继续推进纳斯达克上市,已提前“套现”2060万元
VGg download (.Net file and imagenet-vgg-verydeep-19)
The R language uses the GT package and the gtextras package to display tabular data gracefully and beautifully: gt of the gtextras package_ The sparkline function visualizes the line plot of the group
Identify and stop the process that's listening on port 8080 or configure this application
Spin lock using CAS
Golang data type diagram
Thread pool
再突破!阿里云进入Gartner云AI开发者服务挑战者象限
golang冒泡排序代码实现
Safe and comfortable, a new generation of Qijun carefully interprets the love of the old father
ASEMI肖特基二极管和超快恢复二极管在开关电源中的对比
Coatnet: marrying revolution and attention for all data sizes
R language uses colorblinr package to simulate color blind vision, and uses edit to visualize the image of ggplot2_ The colors function is used to edit and convert color blindness into visual results
如何让销售管理更高效?
Amadis发布OLA支付处理标准
OutputDebugString instructions and exception handling
leetcode:面試題 08.13. 堆箱子【自頂而下的dfs + memory or 自底而上的排序 + dp】
读书郎通过上市聆讯:平板业务毛利率走低,2021年利润同比下滑11%
2022九峰小学(光谷第二十一小学)生源摸底