当前位置:网站首页>jmeter接口压力测试(一)
jmeter接口压力测试(一)
2022-07-30 09:50:00 【小赖同学啊】
环境准备:
| 压测报告所需了解概念 | |
| 线程参数概念 | 线程数:虚拟用户数。一个虚拟用户占用一个进程或线程。设置多少虚拟用户数在这里也就是设置多少个线程数。 |
| Ramp-Up Period(in seconds)准备时长:设置的虚拟用户数需要多长时间全部启动。如果线程数为 10,准备时长为 2,那么需要 2 秒钟启动 10 个线程,也就是每秒钟启动 5 个线程。 | |
| 循环次数:每个线程发送请求的次数。如果线程数为 10,循环次数为 100,那么每个线程发送 100 次请求。总请求数为 10*100=1000 。如果勾选了“永远”,那么所有线程会一直发送请求,一到选择停止运行脚本。 | |
| Delay Thread creation until needed:直到需要时延迟线程的创建。 | |
| 调度器:设置线程组启动的开始时间和结束时间(配置调度器时,需要勾选循环次数为永远) | |
| 持续时间(秒):测试持续时间,会覆盖结束时间 | |
| 启动延迟(秒):测试延迟启动时间,会覆盖启动时间 | |
| 系统吞度量要素 | 一个系统的吞度量(承压能力)与request对CPU的消耗、外部接口、IO等等紧密关联。单个reqeust 对CPU消耗越高,外部系统接口、IO影响速度越慢,系统吞吐能力越低,反之越高。 |
| QPS(TPS):每秒钟request/事务 数量 | |
| 并发数: 系统同时处理的request/事务数 | |
| 响应时间: 一般取平均响应时间 | |
| QPS(TPS)= 并发数/平均响应时间 或者 并发数 = QPS*平均响应时间 | |
| 计算规则 | 总样本数(请求)=总用户数*循环次数 |
| 每秒启动用户数=总用户数/加载完用户时间 |
环境配置:
| 服务器名称 | 描述 | 安装软件 | 关键说明 |
| master(121.307.163.169) | 1.jmeter控制机 2.压测过程可视化监控平台 | jdk1.8、jmeter5.5 influxdb1.7、grafana | 监控平台访问地址:http://121.307.163.169http:// influxdb地址:121.307.163.169:8086 Prometheus:121.307.163.169:9090/ node_export:http://121.37.163.168:9100/metrics blackbox:121.37.163.167:9098 |
| slaver(121.37.186.136) | jmeter负载机 | jdk1.8 jmeter5.5 | 主要负责负载。 node_export:http://121.37.186.136http:// blackbox:121.37.186.136:9098(后期没启动) |
边栏推荐
- PyQt5-用像素点绘制正弦曲线
- 第3章 信息收集
- Array of Shell System Learning
- Adaptive Control - Simulation Experiment 1 Designing Adaptive Laws Using Lyapunov's Stability Theory
- JCL learning
- 大根堆的创建(视频讲解)
- (C language) file operation
- Meikle Studio-Look at the actual combat notes of Hongmeng device development six-wireless networking development
- Paper reading: SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers
- ospf2 two-point two-way republish (question 2)
猜你喜欢

PyQt5-用像素点绘制正弦曲线

EViews 12.0软件安装包下载及安装教程

学习笔记11--局部轨迹直接构造法

Re20:读论文 What About the Precedent: An Information-Theoretic Analysis of Common Law

Materialist Dialectics - Conditionalism
![MySQL installation tutorial [installation version]](/img/e9/9c7b0e3aac22206d126de428c1a4bd.png)
MySQL installation tutorial [installation version]

JVM内存布局、类加载机制及垃圾回收机制详解

(C language) file operation

The thread pool method opens the thread -- the difference between submit() and execute()

Domino Server SSL Certificate Installation Guide
随机推荐
SST-Calib:结合语义和VO进行时空同步校准的lidar-visual外参标定方法(ITSC 2022)
New in GNOME: Warn users when Secure Boot is disabled
Always remember: one day you will emerge from the chrysalis
ospf2 two-point two-way republish (question 2)
Basic operations of sequence table in C language
MySQL |子查询
线程池方式开启线程--submit()和execute()的区别
606. 根据二叉树创建字符串(视频讲解!!!)
shell script
MFCC转音频,效果不要太逗>V<!
CVTE校招笔试题+知识点总结
shell脚本
OC - Manual Reference Counting Memory Management
PyQt5-在窗口上绘制文本
时刻铭记:总有一天你将破蛹而出
一个近乎完美的 Unity 全平台热更方案
实战演练 | 在 MySQL 中计算每日平均日期或时间间隔
Re16:读论文 ILDC for CJPE: Indian Legal Documents Corpus for Court Judgment Prediction and Explanation
hcip06 ospf特殊区域综合实验
自适应控制——仿真实验一 用李雅普诺夫稳定性理论设计自适应规律