当前位置:网站首页>Introduction to pressure measurement of JMeter
Introduction to pressure measurement of JMeter
2022-07-04 21:06:00 【mud】
One 、 What is pressure measurement ?
Analysis of common terms in pressure measurement
TPS: Number of transactions executed per second ( Example is executed every minute 70 One transaction ,tps= 70/60=1.17, It indicates that it can process 1.17 One transaction )
Mean response time : It's the average time needed to process a transaction
Two 、 The purpose and significance of pressure measurement
Purpose :
1、 Test the maximum processing capacity of the system , Find the biggest tps, Judge tps And whether the response time meets expectations
2、 The maximum concurrency of the test system , When the system goes down , Program crash , The error reporting rate continues to rise , Program not responding , If the response time exceeds the tolerable range, it can be considered that the system has reached the maximum concurrency .
3、 ... and 、jmeter Pressure measurement
1、jmeter Use
1.1、jmeter Two thread group operation modes
a、 Number of runs
That is, the running of the script is determined by the specified number of times
b、 Run duration
That is, within a specified time , The script will be run according to the set time
1.2 It's usually used Jmeter stay liunx At the command line , Generally, a press is needed , The pressure measuring machine and the project will be separated
1.2.1 After the press is configured with the environment
The press needs to be installed and configured JDK
Then put it in windows Upload the debugged script to the press
You need to get into Jmeter Add execution permission under the root directory chomod -R +x./*
1.2 .2 Use the command line for pressure measurement
jmeter -n -t XXX.jmx -l result.jtl
-n: Command line mode ,no-gui
-t:jmx Script path
-l : jtl The path where the result file is stored
2、 Performance testing strategy
2.1、 Pressurization strategy
Incrementally increase the number of concurrent , Observe tps And response time , And record tps And response time , Look for a turning point
2.2、 Execution strategy
a、 Pressure test stage : First select a duration according to the progressive increase ( The specific time is selected according to different scenes , General choice 180S/60S), Concurrency number ( Determine the concurrency number according to different projects , At the beginning, you can choose to increase each time 10, If you add 10 I found that the performance was very good , You can increase the number of concurrent points , Reduce test time ), And record tps And response time , Find the inflection point
b、 Heavy pressure stage : Find the inflection point , Before and after the inflection point 5 Group concurrency , Run again (3-5 minute ) Then record the detailed data
3.3 Examples of performance testing strategies :
Single interface pressure measurement : seeing the name of a thing one thinks of its function , That is, only one interface is tested
Pressure test of mixing interface : Determine the number of concurrency in proportion
边栏推荐
- HWiNFO硬件检测工具v7.26绿色版
- 多模輸入事件分發機制詳解
- 二叉树的四种遍历方式以及中序后序、前序中序、前序后序、层序创建二叉树【专为力扣刷题而打造】
- After inserting a picture into word, there is a blank line above the picture, and the layout changes after deletion
- Reinforcement learning - learning notes 2 | value learning
- mysql语句执行详解
- 黄金k线图中的三角形有几种?
- [micro service SCG] use of predict
- 五子棋 上班摸鱼工具 可局域网/人机
- RFID仓库管理系统解决方案有哪些功能模块
猜你喜欢
面对同样复杂的测试任务为什么大老很快能梳理解决方案,阿里十年测试工程师道出其中的技巧
哈希表、哈希函数、布隆过滤器、一致性哈希
WinCC7.5 SP1如何通过交叉索引来寻找变量及其位置?
c语言函数形参自增自减情况分析
What if the computer page cannot be full screen? The solution of win11 page cannot be full screen
Leetcode+ 81 - 85 monotone stack topic
idea配置标准注释
Foxit pdf editor v10.1.8 green version
How to solve the problem that win11 cannot write the value to the registry key?
Sword finger offer II 80-100 (continuous update)
随机推荐
【1200. 最小絕對差】
How does wincc7.5 SP1 find variables and their positions through cross indexing?
测试用例 (TC)
测试员的算法面试题-找众数
面对同样复杂的测试任务为什么大老很快能梳理解决方案,阿里十年测试工程师道出其中的技巧
GVM使用
【服务器数据恢复】某品牌服务器存储raid5数据恢复案例
浏览器渲染页面过程
acwing 3302. 表达式求值
RFID仓库管理系统解决方案有哪些功能模块
heatmap.js图片热点热力图插件
语义化标签的优势和块级行内元素
[1200. Minimum absolute difference]
LeetCode 8. String conversion integer (ATOI)
[server data recovery] a case of RAID5 data recovery stored in a brand of server
Flet tutorial 04 basic introduction to filledtonalbutton (tutorial includes source code)
Flet tutorial 06 basic introduction to textbutton (tutorial includes source code)
HMS Core 统一扫码服务
Qt五子棋人机对战画棋子之QPainter的使用误区总结
【解决方案】PaddlePaddle 2.x调用静态图模式