Error -27791: Server xx has shut down the connection prematurely

      最近在进行一次性能测试中遇到一个问题,并发较大的时候会出现LR出现Error -27791: Server xx has shut down the connection prematurely的ERROR,然后还有同数量的失败交易,

系统架构是nginx---tomcat,遂进行以下排查:

      1.开启nginx的access日志,进行测试,出错时记录下LOADRUNNER通过的事务数,和access中访问记录数做比对,发现二者一致。那么LR的失败交易是因为没有成功和nginx建立连接。

      2.查看/var/log/message,发现少量的TCP: time wait bucket table overflow错误,这个应该是time_wait的数量超过了系统允许的数量。

原文地址:https://www.cnblogs.com/onmyway20xx/p/4209051.html