当前位置:网站首页>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
边栏推荐
- LeetCode 8. String conversion integer (ATOI)
- 分析伦敦银走势图的技巧
- async await 在map中使用
- TweenMax表情按钮js特效
- 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??
- [micro service SCG] use of predict
- [1200. Minimum absolute difference]
- idea恢复默认快捷键
- Hwinfo hardware detection tool v7.26 green version
- Idea configuration standard notes
猜你喜欢
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??
Qt五子棋人机对战画棋子之QPainter的使用误区总结
RFID仓储管理系统解决方案的优点
MySQL - database query - use of aggregate function, aggregate query, grouping query
接口设计时的一些建议
Sword finger offer II 80-100 (continuous update)
福昕PDF编辑器v10.1.8绿色版
[1200. Différence absolue minimale]
《动手学深度学习》(三) -- 卷积神经网络 CNN
搭建一个仪式感点满的网站,并内网穿透发布到公网 1/2
随机推荐
[solution] paddlepaddle 2 X call static graph mode
Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
搭建一个仪式感点满的网站,并内网穿透发布到公网 1/2
idea大小写快捷键
[1200. Différence absolue minimale]
阿里测试师用UI自动化测试实现元素定位
Implementation of redis distributed lock
Qt五子棋人机对战画棋子之QPainter的使用误区总结
[observation] Lenovo: 3x (1+n) smart office solution, releasing the "multiplier effect" of office productivity
go笔记(1)go语言介绍以及特点
6月“墨力原创作者计划”获奖名单公布!邀您共话国产数据库
Go language notes (2) some simple applications of go
mysql语句执行详解
Jekins initialization password not found or not found
【Try to Hack】宽字节注入
What if the WiFi of win11 system always drops? Solution of WiFi total drop in win11 system
How to solve the problem that win11 cannot write the value to the registry key?
【申博攻略】六.如何联系心仪的博导
Foxit pdf editor v10.1.8 green version
js 3D爆炸碎片图片切换js特效