j.i.IOException: Premature close

Hi,

I am new to Gatling and looking for some help with an error I see when executing a Gatling performance test. I have a simple Spring Boot reactive application using embedded Tomcat.

When I execute my performance test I sometimes see one or more “> j.i.IOException: Premature close” errors. If i revert back to a servlet version of the spring application I do not see the same exception.

My guess is that Gatling is throwing this exception as the server side connection has been closed early ?

Thanks,
Joe.

Yes, that’s exactly that: server closed the connection while Gatling was trying to write or read. This is expected to happen randomly as network is not instant, so we have some retry. If it becomes noticeable, even with retry, it’s likely there’s a bug somewhere, possibly on the server side.