欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

一步一步的JMeter并发线程组压力测试指南

最编程 2024-08-06 07:52:25
...

安装步骤

1、配置Concurrency Thread Group线程组

下载jmeter插件管理:https://jmeter-plugins.org/install/Install/

2、配置插件信息

jmeter-plugins-manager-1.6.jar 添加到F:\apache-jmeter-5.4.1\lib\ext目录下

然后重启jmeter

3、安装线程组插件

选择 选项->PluginsManager->available Plugins->Concurrency Thread Group

点击:Apply changes and restart jmeter

4、安装插件成功后

Concurrency Thread Group介绍

1、提供了用于配置多个线程计划的简化方法

2、并大线程不够,运行线程中启动额外的线程 ----保持并发水平

3、可以更好的模拟用户行为,控制测试的时间

Concurrency Thread Group参数说明

1、在取样器错误后要执行的动作 action to be taken after a sampler error 

continue / start next thread loop 启动下一进程循环 / stop thread 停止线程 / stop test 停止测试 / stop test now

2、target concurrency:目标并发(线程数)

3、ramp up time:启动时间,目标线程会在设置的启动时间内全部启动

4、ramp-up steps count : 阶梯次数;目标线程在启动时间内分阶梯次数进行加压,每次启动的线程数= 目标线程数 / 阶梯次数

5、hold target rate time:持续负载运行时间;启动完所有线程,持续负载运行的时间,然后再结束

6、time unit:时间单位

7、thread iterations limit:线程迭代次数限制(循环次数);默认为空,理解成永远,当运行时间=hold target rate time+ramp up time 则运行停止

8、log threads status into file:将线程状态记录到文件中,将线程启动和线程停止时间保存为日志文件

推荐阅读