I’m new to Gatling but I like it already especally for the ease of setting up scenarii and the exploitation of the results.
My problem is when I user a ramp in a scenario, the session number per second should be constant (except at start and end) all along the test.
But the curve presents peaks every 35/40 seconds where the number of sessions by second is three to four times the cruise value (which i expect).
My scenario is relatively simple (two requests, one local and one distant) and here is the code to manage the users :
setUp(scn.users(20000).ramp(1000).protocolConfig(httpConf))
What am I doing wrong?
If needed I can post a report to see what’s going on…
Your scenario is so short (only 2 requests, and the first one looks that a static page, so response time should be almost immediate) that your users’ lifespan is directly correlated to the second request response time.
Have a look at ps.psp response time and you’ll realize that it periodically jump from ~150ms to 25s (GC on your server maybe), making your users stay alive much longer.