Jmeter throws “socketexception: connection reset” error during execution

前端 未结 1 916
醉酒成梦
醉酒成梦 2021-01-28 00:23

The target for us to achieve is 500 concurrent users. We have tried running a test for 100 users over 3 machines. And it ran fine without any errors. When i tried running the te

相关标签:
1条回答
  • 2021-01-28 00:51

    The Connection Reset error means failed attempt to write to the socket which has been closed already, on TCP protocol level it means receiving a TCP RST

    It might be the case JMeter is closing the connection prematurely as JMeter 5.0 had httpclient4.time_to_live property set to 2000 and if you're seeing response times > 2 seconds (and you do) most probably JMeter is closing the connection before getting the full response.

    You can try increasing this setting to 60000 matches modern browsers default settings or even more to match your application response time (if you think 3 minutes is acceptable) or consider upgrading to JMeter 5.3 which has better default value.

    More information: Bug 64289

    0 讨论(0)
提交回复
热议问题