# to many active users when using constantUsersPerSec

**URL:** <https://community.gatling.io/t/to-many-active-users-when-using-constantuserspersec/4315>\
**Category:** Gatling (Open-Source)\
**Created:** [May 14, 2018, 12:24pm UTC](https://community.gatling.io/t/to-many-active-users-when-using-constantuserspersec/4315 "2018-05-14T12:24:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aludwiko](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/aludwiko/32/989_2.png) [@aludwiko](https://community.gatling.io/u/aludwiko)\
**Post date:** [May 14, 2018, 12:24pm UTC](https://community.gatling.io/t/to-many-active-users-when-using-constantuserspersec/4315/1 "2018-05-14T12:24:32Z")

</div>

Hi,

I noticed strange behaviour when using constantUsersPerSec. For scenario configuration:

> constantUsersPerSec(130) during (4 minutes)

active users count has some unexpected peak at the beginning of the test:

I changed the configuration to something like this:

> > .inject(
> 
> > constantUsersPerSec(30) during (30 seconds),
> 
> > constantUsersPerSec(60) during (30 seconds),
> 
> > constantUsersPerSec(90) during (30 seconds),
> 
> > constantUsersPerSec(120) during (30 seconds),
> 
> > constantUsersPerSec(150) during (30 seconds)
> 
> > )

And the same thing happens:

How to explain such behaviour?

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [May 14, 2018, 12:52pm UTC](https://community.gatling.io/t/to-many-active-users-when-using-constantuserspersec/4315/2 "2018-05-14T12:52:47Z")

</div>

Because you mostly likely suffer from a huge response time spike that causes virtual users lifespan to increase as much.  
As you use an open workload model, new virtual users keep on arriving while existing users took way longer to die, so hence the active users bump.

---

<div class="post-metadata">

**Author:** ![aludwiko](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/aludwiko/32/989_2.png) [@aludwiko](https://community.gatling.io/u/aludwiko)\
**Post date:** [May 14, 2018, 1:13pm UTC](https://community.gatling.io/t/to-many-active-users-when-using-constantuserspersec/4315/3 "2018-05-14T13:13:14Z")

</div>

Yeah, just wanted to be sure that this is SUT fault, I cannot spot anything unusual, because after the peak, everything returns to normal… profiling, logging, monitoring also looks ok…

W dniu poniedziałek, 14 maja 2018 14:53:21 UTC+2 użytkownik Stéphane Landelle napisał:
