Running gatling forever


I’m running Gatling 2. I’m trying to make my project run forever, once every hour, but it appears to stop after exactly 24 hours. How can I make it run forever?

My code is here:

val scn = scenario(“Scenario Name”)
group(“Log in”){exec(log_in)}
.group(“Do stuff”){exec(do_stuff)}

.pause(60 minutes)

setUp(scn.inject(atOnce(1 user))).protocols(httpProtocol)

Also, the log printed on the console generates an output every 5 seconds. Can i somehow make it generate every hour?

Thanks in advance,


Thanks a lot for the quick reply!

You’re welcome

Hi Stephane,

I want to execute for an hour but my users exiting after completing only 1 iteration with given below simulation…

setUp(scn.inject(rampUsers(2) over (10))).protocols(httpConf).maxDuration(3600)

Please help me how to make it to run for an hour duration.Could you give me any example…

Thanks in advance…


Hi Sravan i think you need some kind of looping to achieve that. Try to use the forever or repeat dsl for example (