StackOverFlow with gatling 2.2.0

118 views
Skip to first unread message

Benoit Tellier

unread,
Oct 17, 2016, 10:35:54 AM10/17/16
to Gatling User Group
Hi,

While writing a script to perform some SMTP with Gatling, I encountered a Stack overflow error.

I developped a custom protocol over the 2.2.0 to send eMails via SMTP.

If I run my scenario with  I can run my scenario without trouble:

setUp(scn.inject(nothingFor(10 seconds), rampUsers(UserCount) over(10 seconds))).protocols(smtp)

However, if I use :

setUp(scn.inject(atOnceUsers(UserCount)))
.maxDuration(3 minutes)
.throttle(
reachRps(UserCount) in (10 seconds),
holdFor(3 minute))
.protocols(smtp)

I get a StackOverFlowException with the following stack trace after ~ 40 seconds of tests (I selected the repeated part of it) :

    at org.apache.james.gatling.smtp.SmtpAction.execute(SmtpAction.scala:32)
    at io.gatling.core.action.Action$class.$bang(Action.scala:35)
    at org.apache.james.gatling.smtp.SmtpAction.io$gatling$core$action$ChainableAction$$super$$bang(SmtpAction.scala:14)
    at io.gatling.core.action.ChainableAction$class.$bang(Action.scala:60)
    at org.apache.james.gatling.smtp.SmtpAction.$bang(SmtpAction.scala:14)
    at io.gatling.core.action.InnerLoop.execute(Loop.scala:66)
    at io.gatling.core.action.Action$class.$bang(Action.scala:35)
    at io.gatling.core.action.InnerLoop.io$gatling$core$action$ChainableAction$$super$$bang(Loop.scala:41)
    at io.gatling.core.action.ChainableAction$class.$bang(Action.scala:60)
    at io.gatling.core.action.InnerLoop.$bang(Loop.scala:41)
    at io.gatling.core.action.Loop.io$gatling$core$action$Loop$$$anonfun$1(Loop.scala:38)
    at io.gatling.core.action.Loop.io$gatling$core$action$Loop$$$anonfun$1$adapted(Loop.scala:38)
    at io.gatling.core.action.ExitableAction$.exitOrElse(BlockExit.scala:125)
    at io.gatling.core.action.Loop.execute(Loop.scala:38)
    at io.gatling.core.action.Action$class.$bang(Action.scala:35)
    at io.gatling.core.action.Loop.$bang(Loop.scala:30)
    at org.apache.james.gatling.smtp.SmtpAction.execute(SmtpAction.scala:32)

I do not understand why the second secnario do not behave like the first one.

I attached SmtpAction to the post.

Regards,

Benoit Tellier
SmtpAction.scala

Stéphane LANDELLE

unread,
Oct 18, 2016, 11:23:37 AM10/18/16
to gat...@googlegroups.com
Honestly, no idea.
Have you tried upgrading to latest release (2.2.2)  or master?

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.

Rob Gates

unread,
Dec 1, 2016, 11:46:44 AM12/1/16
to Gatling User Group
Did you ever get to the bottom of this?

I'd love to use Gatling to send SMTP - wondered if you'd got anywhere close to a reliable solution!?


Thanks,
Rob

To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages