当前位置:网站首页>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
边栏推荐
猜你喜欢
剑指 Offer II 80-100(持续更新)
[1200. Différence absolue minimale]
Flet tutorial 06 basic introduction to textbutton (tutorial includes source code)
阿里测试师用UI自动化测试实现元素定位
MySQL --- 数据库查询 - 聚合函数的使用、聚合查询、分组查询
What if the computer page cannot be full screen? The solution of win11 page cannot be full screen
黄金k线图中的三角形有几种?
How to solve the problem that win11 cannot write the value to the registry key?
科普达人丨一文看懂阿里云的秘密武器“神龙架构”
HWiNFO硬件检测工具v7.26绿色版
随机推荐
js 3D爆炸碎片图片切换js特效
Automatic generation of interface automatic test cases by actual operation
LeetCode 871. Minimum refueling times
Flet tutorial 06 basic introduction to textbutton (tutorial includes source code)
【微服务|SCG】Predicate的使用
What if the brightness of win11 is locked? Solution to win11 brightness locking
How does win11 search for wireless displays? Win11 method of finding wireless display device
多模输入事件分发机制详解
JS closure
What if the WiFi of win11 system always drops? Solution of WiFi total drop in win11 system
How does the computer save web pages to the desktop for use
Redis分布式锁的实现
Jekins initialization password not found or not found
ACM组合计数入门
[Shenbo introduction] VI How to contact your favorite doctoral tutor
Summary of the mistakes in the use of qpainter in QT gobang man-machine game
Android原生数据库的基本使用和升级
RFID仓储管理系统解决方案的优点
浏览器渲染页面过程
Poster cover of glacier