Gatling errors

1,223 views
Skip to first unread message

Ankit

unread,
Mar 11, 2021, 7:09:00 AM3/11/21
to Gatling User Group
Hello,

I'm getting lot of such errors for my scenario/simulation. I need some help to understand each of these errors and the direction to take to find their root cause. Are they because of my system capability (will inject these load from bigger machine solve this?) OR the way my application is handling these requests?

Screenshot 2021-03-11 at 12.56.15 PM.png

Context
Gatling version: 3.5.1
I'm triggering my test from my local machine to run on application (not on my local). 
My system configuration is : 

Screenshot 2021-03-11 at 12.59.42 PM.png

Let me know if you need any more information from my end.

Stéphane LANDELLE

unread,
Mar 11, 2021, 10:24:40 AM3/11/21
to gat...@googlegroups.com
It's a network issue.
It could be either your target application or your network.

Logo Stéphane Landelle
Chief Technical Officer
twitter: @slandelle
site:
gatling.io




--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gatling/93ad81b5-b021-4dd5-85b1-4ce1ea5f6645n%40googlegroups.com.

Ankit

unread,
Mar 11, 2021, 10:58:55 AM3/11/21
to Gatling User Group
I'm sorry. I'm very new in this type of testing. 

Could you help and explain little bit in details so that i can take that as reference and initiate conversation with my team to solve this? Thanks in advance for all your help. 

Ankit

unread,
Mar 12, 2021, 4:41:51 AM3/12/21
to Gatling User Group
Hi Stéphane,

Good morning.

Here is summary of the information I collated from your another answers:
  • j.i.IOException: Premature close
    • your SUT can’t process in time
    • your load injector machine is not beefy enough (CPU, bandwidth) - We are working on it to inject load from Heavy machine.
    • It most likely means your application can’t withstand such load and kill connections even though requests are flying.
    • j.n.c.ClosedChannelException
      • System forcefully kills connections just after they’ve been opened.
      • i.n.c.ConnectTimeoutException: connection timed out: api-{env}/34.102.184.150:443
        • Increasing timeout from gatling side to 8mins brings the error down a bit but still for huge load this error such persists

        Our application is hosted on GCP. Could you help me understand where(which section in generic) can I find these errors in GCP? There is no info in backend/application logs as the request doesn't reach application itself. 

        Any other debugging idea is highly appreciated. Looking forward to your response.

        Stéphane LANDELLE

        unread,
        Mar 12, 2021, 7:57:11 AM3/12/21
        to gat...@googlegroups.com
        j.i.IOException: Premature close

        Premature close means the remote peer closed the connection while the client was trying to write on it.
        This can happen legitimately on keep-alive timeout, as the network is not instantaneous.
        • when getting a premature close on a pooled keep-alive connection, modern versions of Gatling with automatically retry and open e new connection and you won't see an error
        • when getting a premature close on a new freshly opened connection, you'll see this failure => it's indeed a failure of your SUT that crashes connections 

        j.n.c.ClosedChannelException

        I don't think you should still see those with modern version of Gatling.

        i.n.c.ConnectTimeoutException: connection timed out: api-{env}/34.102.184.150:443

        Your SUT is saturated or loses requests. Increasing client timeout won't help, your SUT (app, network, load balancers...) can't withstand this load or is buggy.



        Logo Stéphane Landelle
        Chief Technical Officer
        twitter: @slandelle
        site:
        gatling.io



        Ankit Laddha

        unread,
        Mar 12, 2021, 9:31:23 AM3/12/21
        to gat...@googlegroups.com
        Thanks a lot Stephane. Your explanation helped to clear a few more things out.

        I'll be looking into the load-balancers first to see if I find something there. 

        You received this message because you are subscribed to a topic in the Google Groups "Gatling User Group" group.
        To unsubscribe from this topic, visit https://groups.google.com/d/topic/gatling/Yb3IKROnUQU/unsubscribe.
        To unsubscribe from this group and all its topics, send an email to gatling+u...@googlegroups.com.
        To view this discussion on the web visit https://groups.google.com/d/msgid/gatling/CAJw%3DiaRbSsTq4rT31EkwSy_%3DAUpRNEjpW%3DmPt48mpaiL-MybUw%40mail.gmail.com.


        --
        Best,
        Ankit Laddha
        Software Quality Engineer
        Dealer Experience Team / OlxAutos
        “The measure of who we are is what we do with what we have.” – Vince Lombardi

        Sri Harsha G

        unread,
        Mar 16, 2021, 11:29:15 AM3/16/21
        to Gatling User Group
        Hi Ankit,

        You can also configure your load generators to be more performant

        Stéphane LANDELLE

        unread,
        Mar 16, 2021, 11:30:44 AM3/16/21
        to gat...@googlegroups.com
        No, really, Premature close has nothing to do with load injector performance.

        Then, we also have such tunings documented on our side: https://gatling.io/docs/current/general/operations/


        Logo Stéphane Landelle
        Chief Technical Officer
        twitter: @slandelle
        site:
        gatling.io



        Niko Kovatch

        unread,
        Feb 15, 2022, 3:50:15 AM2/15/22
        to Gatling User Group
        Dear Stephane, I faced with an issue while doing a test on finding max performance. After some level of rps I encount errors such as "14:21:03.294 [DEBUG] i.g.h.e.r.DefaultStatsProcessor - Request 'myReq' failed for user 24409: j.n.c.ClosedChannelException". As you wrote before it shouldn't appaer in new versions of gatling, but I'm using the latest one (3.7.4 + openjdk:17-jdk-alpine). Could you please give a fresh advice on this situation?

        вторник, 16 марта 2021 г. в 18:30:44 UTC+3, Stéphane Landelle:

        Stéphane LANDELLE

        unread,
        Feb 15, 2022, 3:52:52 AM2/15/22
        to gat...@googlegroups.com
        Hi,

        The only way for us to investigate this kind of issue is that you provide a provide a Short, Self Contained, Correct (Compilable), Example (see http://sscce.org/).

        --

        Stéphane Landelle

        Chief Technical Officer

           

        Reply all
        Reply to author
        Forward
        0 new messages