Simulation is not running for the expected duration

Hi All,

I thought the below setUp will run for 60 minutes. However, it’s only running for 771 secs and stopping after that.

setUp(scn.inject(constantUsersPerSec(13) during (60 seconds))).throttle(
reachRps(3) in (5 seconds),
holdFor(60 minutes)

I’m not sure what i’m missing.

Thanks in advance for your guidance.

Kind Regards,
Prash.

Hi there,

It’s all in the doc: https://gatling.io/docs/current/general/simulation_setup/?highlight=throttling

Thanks for your reply Stephane.

Yes, i have gone through the documentation> However, it’s not very clear. All i want to do is rampup users 1 every 5 secs and then run X number of users for 60 minutes. Not sure how to achieve this.

Your ‘holdFor(60 minutes)’ is part of your throttling statement - as in, how long to throttle for.
But you’re only injecting users for 60 seconds, and they’re all completing within 771 seconds.

you will need to come up with a different set of injection commands that start users over the full 60 minutes