Reputation: 13
I'm experiencing a couple of problems while trying to run a Gatling simulation I've done. basically, I have two problems:
val scnCreation = scenario("My Scenario").during(conf.getDuration("test.duration")) {
exec(Pattern.methodToExecute)
}
setUp(scnCreation.inject(
rampUsers(conf.getInt("test.vu")).during(conf.getDuration("test.ramp"))
)
I'm getting this error while the test is running, but my resources are not overwhelmed (CPU is about ~30% and memory is about ~50%):
[gatling-http-1-13] WARN io.netty.channel.nio.NioEventLoop - Selector.select() returned prematurely 512 times in a row;
Any ideas on how to increase the "limits" of the Gatling engine and how to fix that bad-behavior in which Gatling kills one virtual user after an error?
Upvotes: 0
Views: 596
Reputation: 6623
If you don't want your users to exit your loop, don't use exitHereIfFailed
. Wrap your loop content with exitBlockOnFail
instead. Have a look at the documentation.
Then, in any case, Gatling doesn't "recycle" virtual users. You're using rampUsers
which defines an open workload model where you define the arrival rate of your users.
Also, I suspect you're using an old version of Gatling as modern ones don't use Java NIO on Linux. You should upgrade (latest is 3.5.1 as of now)
Upvotes: 0