I am using gatling 2.3.1, but same behavior happened on earlier version of gatling.
I am trying to put some code in session section and I have noticed that my scenario is not executed in parallel for virtual users.
Here is simple scenario:
Thank you for response.
I have updated my scripts to Gatling 3, but nothing changed for me.
I tried different build tools - sbt and gradle plugin (com.github.lkishalmi.gatling). Executed this script with windows and linux and nothing works for me.
None of my scripts are working in parallel, this dummy scenario just shows my issue. If someone faced same setup issue please help.
Thank you for response.
I am using Thread.sleep to imitate my real script, which can execute one request up to 11 seconds.
It seams that my gatling application can create only one thread for some reason, but your response made me thinking about looking deeper into managing akka’s thread pools via dispatchers.
While I always like digging deep, I don’t think looking at Akka’s/Gatling’s internals is going to help before you clear up the confusion over Gatling’s surface API .
In Gatling, requests are described in the DSL; and their execution, which are done behind the scenes, do not block threads.
Quoting the README on github, it uses “Async Http Client and Netty for non blocking HTTP”.
When the virtual user is waiting for the server’s response, the thread that sends the request does not sit idle, but moves on and does other stuff.
That is why Thread.sleep, which blocks threads, is a poor imitation of Gatling’s requests.
That also means if you are using a protocol that is not supported, it will take some effort to integrate it into a Gatling test.
We may be able to help if we know more than “I want 10 threads to sleep in parallel.”.