constantConcurrentUsers() during() doesn't get reflected in the HTML report

Hi,

I am using Gatling 3.3.1 and running a simple test

`

object TestOnly{

val TestOnly=
feed(CSV1)
.feed(CSV2)
.exec(http(“TestOnly”)
.get("/somePath")
.check(status.in(200, 404))
)
}

`

`
val TestScenario = scenario(“Test Only”).exec(TestOnly.TestOnly)

`

`

setUp(
TestScenario.inject(
constantConcurrentUsers(10) during (9 seconds)
)
).protocols(theHttpProtocolBuilder).maxDuration(9)

`

I would expect a constant 10 active users will be generated for 9 seconds linearly ( I am doing closed model).

But what I see in the report is

  1. The initial generated users are 12 users and then it increases to nearly 20 users
  2. The users are generated for duration of 8 seconds only (expected 9 seconds)

Is there something wrong with my code ? How to achieve my expectation?

Cheers.

Additionally , I tried to increase the duration to 60 seconds.

`

setUp(
TestScenario.inject(
constantConcurrentUsers(10) during (60 seconds)
)
).protocols(theHttpProtocolBuilder).maxDuration(70)

`

I see the generated users are roughly around 50 users (instead of 10 users). 5 x higher than what I expect.
Not sure where could go wrong here ?

Cheers.

What you see here is active users, not concurrent ones.

https://gatling.io/docs/current/general/reports/#active-users-over-time