Error: j.i.IOException: Premature close

While I am running concurrent users load, if I put in more than 2000 users, I get error j.i.IOException: Premature close

Works fine if I load about 1500 or 1800, if l give load beyond that, I get this exception If I run about 5000 requests, about 30% requests will have this error.
My Injection code below.



It most likely means your application can’t withstand such load and kill connections even though requests are flying.

Seriously? It’s an ec2 t2 large instance just with nginx in it.