upstream prematurely closes cnx => 502 Bad Gateway to client

stefws nginx-forum at
Fri Mar 4 07:12:51 UTC 2016

@B.R. You're right, seemed my upstream tomcat instances were RESETing cnx as
reply something.

So far I improved it a lot my altering a http connector keepAliveTimeout
value from mistakenly expressed as sec when in fact it should be msec ;)

When heavy load it still occurs but far less frequently, will dig deeper
into tomcat trimming/tunning

Posted at Nginx Forum:,265031,265070#msg-265070

More information about the nginx mailing list