当前位置:网站首页>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
边栏推荐
- 阿里测试师用UI自动化测试实现元素定位
- [1200. Minimum absolute difference]
- NetWare r7000 Merlin system virtual memory creation failed, prompting that the USB disk reading and writing speed does not meet the requirements. Solution, is it necessary to create virtual memory??
- 【申博攻略】六.如何联系心仪的博导
- jekins初始化密码没有或找不到
- async await 在map中使用
- Summary of the mistakes in the use of qpainter in QT gobang man-machine game
- acwing 3302. Expression evaluation
- Vue cleans up the keepalive cache scheme in a timely manner
- Play the music of youth
猜你喜欢
Ten years' experience of byte test engineer directly hits the pain point of UI automation test
【服务器数据恢复】某品牌服务器存储raid5数据恢复案例
WinCC7.5 SP1如何通过交叉索引来寻找变量及其位置?
PS竖排英文和数字文字怎么改变方向(变竖直显示)
Gobang go to work fishing tools can be LAN / man-machine
网件r7000梅林系统5g不稳定 5g信号经常掉线解决方法
How does the computer save web pages to the desktop for use
c语言函数形参自增自减情况分析
hash 表的概念及应用
字节测试工程师十年经验直击UI 自动化测试痛点
随机推荐
Foxit pdf editor v10.1.8 green version
伦敦银走势图分析的新方法
【1200. 最小绝对差】
acwing 3302. 表达式求值
实操自动生成接口自动化测试用例
LeetCode 7. Integer inversion
黄金k线图中的三角形有几种?
How to solve the problem that win11 cannot write the value to the registry key?
D3.js+Three.js数据可视化3d地球js特效
Record the online bug solving list (unfinished to be continued 7/4)
测试员的算法面试题-找众数
【Try to Hack】宽字节注入
Summary of the mistakes in the use of qpainter in QT gobang man-machine game
go笔记(1)go语言介绍以及特点
Flet tutorial 04 basic introduction to filledtonalbutton (tutorial includes source code)
【服务器数据恢复】某品牌服务器存储raid5数据恢复案例
嵌入式TC 测试用例
Vue cleans up the keepalive cache scheme in a timely manner
Android原生数据库的基本使用和升级
Leetcode+ 81 - 85 monotone stack topic