# Active users

**URL:** <https://community.gatling.io/t/active-users/5725>\
**Category:** Gatling (Open-Source)\
**Created:** [July 20, 2020, 3:08pm UTC](https://community.gatling.io/t/active-users/5725 "2020-07-20T15:08:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5](https://avatars.discourse-cdn.com/v4/letter/u/cab0a1/32.png) [@user5](https://community.gatling.io/u/user5)\
**Post date:** [July 20, 2020, 3:08pm UTC](https://community.gatling.io/t/active-users/5725/1 "2020-07-20T15:08:59Z")

</div>

Hi All,

I might not understand “Active users” concept, so, could you put some light on the following situation please.

I have a simple scenario:

```auto
class GetProdLikeSimulation extends Simulation {

  val simulationDuration: lang.Long = 300L

  setUp(
    scenario("GET monitor/version")
      .repeat(1) {
        exec(
          http("GET monitor/version")
            .get("/monitor/version")
            .check(status is 200)
        )
      }
      .inject(constantUsersPerSec(245) during (simulationDuration second))
  )
    .protocols(http.baseUrl(baseUrl).headers(Map(Header.iPhoneUserAgent, Header.jsonContentType)))
}

```

I am sending simple get request (245 req per sec during 5 mins) here.

Everything is fine while “Active users” is on the same level. Then this “Active users” parameter is growing up dramatically.

 ![Auto Generated Inline Image 1.png](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/1X/bcf900db245fbf33b6141c3ee448d5a9eb9d7f1f.png)

So, several questions here from my side:

1. What is the reason for that?
2. Why the time spot when “Active users” starts to increase is always random (from run to run)?

Thanks a lot,  
Bogdan

---

<div class="post-metadata">

**Author:** ![sbrevet](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/sbrevet/32/830_2.png) [@sbrevet](https://community.gatling.io/u/sbrevet)\
**Post date:** [July 20, 2020, 4:21pm UTC](https://community.gatling.io/t/active-users/5725/2 "2020-07-20T16:21:34Z")

</div>

Hi Bogdan,

Please see the documentation about injection configuration:  
[https://gatling.io/docs/current/general/simulation\_setup#open-model](https://gatling.io/docs/current/general/simulation_setup#open-model)

```auto
constantUsersPerSec(245) during (simulationDuration second)

```

will indeed create 245 new users per second.

So, if the scenario is long enough, or your server takes time to answer, the actual active users will pile up.

 ![Auto Generated Inline Image 1.png](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/1X/bcf900db245fbf33b6141c3ee448d5a9eb9d7f1f.png)
