run all requests at once or increase active users

How to setup gatling to execute all users in parallel? I want to run at once 1800 requests, but gatling handle all of them and in “Active user” line I saw, that it executes only ~5 request per second, other are just waiting for their turn.

Maybe I need to change configuration on host where test is running?

No idea what you’re doing or trying to do, sorry.

A scenario is a workflow where virtual users go from one action to another.
You’re the one in charge of configuring how to inject users into it, see “inject” documentation.

Let me explain a little bit more details :slight_smile:

I have scenario like

setUp(
  scn.inject(
   atOnceUsers(1800)
  )
 ).assertions(global.successfulRequests.percent.greaterThan(95))

So, I expecting that users will be start at once and than all of them will start to execute, but in log I observe, that they all started at once, but they are not executed at the same time:

I guess either your system under test, or your Gatling host, or both, have a hard time opening 1800 new connections instantly (and possibly performing 1800 SSL handshakes if you use HTTPS).

Unless the system you are testing is on a cluster, there is no way it can handle 1800 connections arriving simultaneously. The network transport layer can’t handle that kind of concurrency, not to mention the application.

Play with ramping for 1 user per second to 2,500 users per second over a long duration, like, over an hour. Then look at the graph and you will see at some point where the response times start to climb. At that point, you will have hit the maximum concurrency of your system under test.

Hi, Daria:

Did you figure out your problem eventually? I met the same thing with my tests…

Much appreciate if you can provide any of your solution