These are my configuration: ulimit -n
65535 nano /proc/sys/net/ipv4/tcp_fin_timeout
30 nano /proc/sys/net/ipv4/ip_local_port_range
32768 65535
Also I changed
/etc/pam.d/sshd , I added session required pam_limits.so /etc/ssh/sshd_config, I changed UseLogin yes
I am running this test on 10 machines . This should throw: 500k RPM during 5 min → 2500000 request.
setUp(
test1.inject(constantUsersPerSec(833) during (500 seconds))
).protocols(httpConf)
What am I doing wrong? When I tried to reach 1 million is ok, but with more than 2 million gatling or the machines go down.
Yes, you must ask yourself whether a thousand users per second will hit one URL and close the connection. Other load test tools share connections which is unrealistic for browser based tests.
shareConnections = simulating server to server traffic
If that’s your use case, fine.
But if your use case is simulating web traffic, no, it didn’t “make the trick”.
You actually broke your test and made it meaningless.
You have to properly lift your OS limits as described in this thread and in our documentation, and if it’s not enough, resort to distributed tests eg with Gatling Enterprise.