Future timeout when maxDuration of simuilation reached

239 views
Skip to first unread message

Bartłomiej Szczepanik

unread,
Jan 18, 2017, 7:05:45 AM1/18/17
to Gatling User Group
Hey,

I am consistently getting the following problem, when the simulation is terminated due to the maxDuration timeout:

Simulation [xxx] started...
05:30:37.005 [INFO ] i.g.c.c.Controller - Max duration of 7 minutes reached
05:30:37.020 [INFO ] i.g.c.c.Controller - StatsEngineStopped
Simulation [xxx] completed in 426 seconds
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:50)
at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33)
Caused by: java.util.concurrent.TimeoutException: Futures timed out after [2 seconds]
at scala.concurrent.impl.Promise$DefaultPromise.ready(Promise.scala:219)
at scala.concurrent.impl.Promise$DefaultPromise.result(Promise.scala:223)
at scala.concurrent.Await$$anonfun$result$1.apply(package.scala:190)
at scala.concurrent.BlockContext$DefaultBlockContext$.blockOn(BlockContext.scala:53)
at scala.concurrent.Await$.result(package.scala:190)
at io.gatling.app.Gatling$.start(Gatling.scala:59)
at io.gatling.app.Gatling$.fromArgs(Gatling.scala:41)
at io.gatling.app.Gatling$.main(Gatling.scala:33)
at io.gatling.app.Gatling.main(Gatling.scala)
... 6 more


The scenario is a single http request call for a user session, no repeats. The simulation is set up more less like this:

setUp(
scn.inject(
rampUsersPerSec(0) to 50 during (1 minute),
constantUsersPerSec(50) during (5 minutes)
)
)

Is there any way to increase the future timeout? Do you have an idea why the actor system cannot be closed within 2 seconds? Unfortunately, due to this error I cannot get a report, even though the entire simulation was performed.

Best regards,
Bartlomiej


Stéphane LANDELLE

unread,
Jan 23, 2017, 6:05:11 AM1/23/17
to gat...@googlegroups.com

Stéphane Landelle
GatlingCorp CEO


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages