[Jmeter] Concurrency Thread Group

本文详细介绍了如何使用Concurrency Thread Group插件进行并发测试。通过设置目标并发数、增加并发用户数的时间及步骤等参数,可以精确控制负载测试的流量模式。以100个并发用户为例,每3分钟增加10个用户,共分10个步骤完成,在30分钟内逐步达到最大并发数,并保持此状态30分钟。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Concurrency Thread Group : https://jmeter-plugins.org/wiki/ConcurrencyThreadGroup/

参数介绍:

Target Concurrency: Number of Threads 目标用户并发数

Ramp Up Time: for the whole test  增加并发用户数的总时间

Ramp-Up Steps Count  增加并发用户数的次数

Hold Target Rate Time:  并发用户数达到目标之后持续的测试时间

Time Unit : minutes or seconds

Thread Iterations Limit: Numbers of Loops

Log Threads Status into File: saving thread start and thread stop events as a log file

 

Let’s look at the following scenario:

- 100 threads

- 30 minutes Ramp Up Time

- 10 Ramp-Up Steps

- 30 minutes holding the target rate

 

This means that:

- 每3分钟(30 minutes Ramp Up Time/10 Ramp-Up Steps)加10个用户(100 threads/10 Ramp-Up Steps),直到用户数达到100(100 threads)

- Every 3 minutes 10 users will be added until we reach 100 users. ( 30 minutes divided by 10 steps equals 3 minutes per step. 100 users divided by 10 steps equals 10 users per step. Totaling - 10 users every 3 minutes).

- 当用户数达到100,这100个用户将继续向服务器发送请求,持续30分钟(30 minutes holding the target rate)

- After reaching 100 threads all of them will continue running and hitting the server together for 30 minutes

转载于:https://www.cnblogs.com/MasterMonkInTemple/p/9007818.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值