I am using mac to test some apis using gatling. when I test 1000 around 450 of the connections are refused and anf this is really affecting my tests.Here is what I get
> j.n.SocketException: Connection reset by peer
and here is my scenario
def postNewQuery() = {
exec(http("Post New Query")
.post("/searches/")
.body(ElFileBody("bodies/createQueryBody.json")).asJson
.check(status.is(201)))
}
val scn = scenario("Post new games")
.exec(postNewQuery())
setUp(
scn.inject(atOnceUsers(1000))
).protocols(httpConf)
}
What do you usually do in this case? do you increase any limit?