51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1442|回复: 0
打印 上一主题 下一主题

LoadRunner: Dynamic ramp-up LoadRunner Scenario

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2006-10-30 14:24:08 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Description

      How to dynamically change the ramp-up rate of a LoadRunner Scenario to minimise ramp-up time.


Solution

      It is often a time-consuming process to get to a pre-determined number of users as a starting point for a load test, or to determine the maximum number of users that a large system can support before it fails. This is especially the case in complex web systems that are sensitive to the ramp-up rate of new users connecting and using the system if a slow ramp-up rate is used for the entire scenario. If you only have a few days in a test lab, every minute of test execution time counts, and the following suggestion can save hours by rapidly ramping up the first users in a test, while the system is able to support a high ramp-up rate.

One way of dynamically managing the ramp-up rate of a test is to set up multiple groups (or sets of groups), each of which have different ramp up rates, all starting at the beginning of the scenario.
eg
group_5ps where 5 users are started each second
group_2ps where 2 users are started each second
group_1ps where 1 user is started each second
group_1p2s where 1 users is started each 2 seconds

Setup each group with sufficient numbers of users and start the test. When the response times start to degrade significantly, remove all un-started users from the group that is ramping up at the fastest rate. In this example, stopping new users from being added from the first group slows the ramp-up rate from 8.5 per second to 3.5 per second. The ramp-up rate can again be slowed to 1.5 per second at the point where 3.5 per second is excessive. Note the numbers of users in each group, for use in subsequent tests.

If there were 500 users in each of the above groups, then it would take 1000 seconds (< 17 minutes) to ramp up to 2000 users, compared with 4000 seconds (1 hour, 7 minutes) at the slowest ramp-up rate.

Note that the slowest ramp-up rate should not be lower than the minimum ramp-up rate expected to be experienced in production.

Paul McLean
www.loadtest.com.au
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-15 15:21 , Processed in 0.061375 second(s), 23 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表