Connection refused logging

Hi.

I’m currently executing some gatling simulations against an application and I’m getting a number of Connection refused errors but can’t see any other information.

Is there a way to better log the full response of such errors?

Well, no, that’s exactly that: it’s a TCP error where the endpoint you’re hitting can’t deal with that many connections and refuses to open new ones.

  1. is your application reachable from the machine where the tests are running on?
  2. did you try with one request in the simulation and successful?
  3. was all requests failing or starts failing after few successful requests? If it’s the latter, you might have to look into load profile of the simulation. It might be generating too many requests and can’t establish connections from just one machine

Best /Mohan

Have you tried adding logback.xml configuration on the classpath and enabling debug root level? If not, here is the configuration you could use:

true %d{HH:mm:ss.SSS} [%-5level] %logger{15} - %msg%n%rEx

I forgot to change it in the above, but root level shall be debug i.e.: