当前位置:网站首页>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(后期没启动) |
边栏推荐
猜你喜欢

BERT pre-training model series summary

新一代开源免费的终端工具,太酷了

一个近乎完美的 Unity 全平台热更方案

flyway的快速入门教程

(C language) file operation

4、yolov5-6.0 ERROR: AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘ 解决方案

第3章 信息收集

By building a sequence table - teach you to calculate time complexity and space complexity (including recursion)

GNOME 新功能:安全启动被禁用时警告用户

Quick Start Tutorial for flyway
随机推荐
数据库脏读、不可重复读、幻读以及对应的隔离级别
论文阅读:SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers
GNOME 新功能:安全启动被禁用时警告用户
JVM内存布局、类加载机制及垃圾回收机制详解
JCL learning
Understanding of deadlock
Adaptive Control - Simulation Experiment 1 Designing Adaptive Laws Using Lyapunov's Stability Theory
Basic operations of sequence table in C language
shell script
hcip06 ospf special area comprehensive experiment
Re17:读论文 Challenges for Information Extraction from Dialogue in Criminal Law
唯物辩证法-条件论
shell脚本
Beijing suddenly announced big news in the Metaverse
Matplotlib--plot markers
debian10安装djando
WARN: Establishing SSL connection without server's identity verification is not recommended when connecting to mysql
梅科尔工作室-看鸿蒙设备开发实战笔记七——网络应用开发
Quick Start Tutorial for flyway
Redis Desktop Manager 2022.4.2 发布