Hold the load with during


I’ve a simulation where I have some trouble to hold the load for a specific timeframe.


val scn = scenario(getClass.getSimpleName)
.during(270 seconds, exitASAP = false) {

// User login

// Repeat some random actions
.repeat(10) {



setUp(scn.inject(rampUsers(users) over (30 seconds)))

I would expect that the simulation duration is (approximately) 5 minutes with a total ramp up/down of 30 seconds. But my simulation only takes about two minutes, see screenshot.

Any ideas?


My environment:

java version “1.7.0_71”
Java™ SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot™ 64-Bit Server VM (build 24.71-b01, mixed mode)

Scala version 2.10.4-20140210-000000-b66a39653b – Copyright 2002-2013, LAMP/EPFL

Gatling version 2.0.3

likely that your scenario is failing somewhere like login, causing the loop to exit and the user to exit the system, resulting in the active users to reduce.

eg. possibly


can you see if any of the scenario steps are failing?

What does your rps profile look like?

Beware that .exitHereIfFailed cause the virtual user to exit if there was one single previous failed request.

That’s it, thank you guys (bow)