during is ignored under some circumstances ?

Hi guys,

somehow when this code scenario is run with “during” 20 minutes it takes sometimes 40 minutes to finish. Maybe the fact that the most of requests are finished with - "

What I can tell you is that :

(total execution time) <= (injection duration) + (max execution time of one user)

You scenario has some repeat() blocks, so, if you have around 20 requests that all timeout after 1 minutes, it just make sense that the total execution time is about 40 mins.

does this help you ?

cheers
nicolas

i agree with your formula - (total execution time) <= (injection duration) + (max execution time of one user)
but it seems to not work .

in the code repeat block is not used , if during is used then repeat is ignored

Yuri

Понеділок, 15 квітня 2013 р. 18:07:01 UTC+3 користувач Nicolas Rémond написав:

What is depth’s value?

depth is 10

Вівторок, 16 квітня 2013 р. 10:17:38 UTC+3 користувач Stéphane Landelle написав:

Let’s compute the worst case scenario:

  • the last user is started at the end of the ramp: 200 sec = 3,3 min
  • it enters the “if” part of the during loop for one last time after 20 min minus 1ms
  • it executes the chain and repeats ten times a request that times out = 10 * 1 = 10 min
    The work case gives you:
    3,3 + 20 + 10 = 33,3 min

We’re getting closer.
Could you provide your simulation.log, please?

Вівторок, 16 квітня 2013 р. 11:01:01 UTC+3 користувач Stéphane Landelle написав:

duration_20_actual_40.zip (986 KB)

This looks like an async-http-client bug: most (but not all of them) of your requests didn’t time out after 60 seconds as expected and as logged, but actually after 120 seconds.
With such timeouts, the worst case would be 43,3 min.

I will investigate and open an issue in AHC. I guess that’s one more issue with the reaper:
https://github.com/AsyncHttpClient/async-http-client/issues/271

https://github.com/AsyncHttpClient/async-http-client/issues/249

https://github.com/AsyncHttpClient/async-http-client/issues/247

Be aware that this will take time to fix. Anyway, Gatling properly logs and computes the actually response times.

Thanks for reporting.

good, that explains these 40 mins. thanks

Вівторок, 16 квітня 2013 р. 14:46:39 UTC+3 користувач Stéphane Landelle написав: