简体   繁体   English

jmeter中的peer.socket写错误重置连接

[英]Connection reset by peer.socket write error in jmeter

I am new to JMeter and I am getting an error in Jmeter 我是新来的JMeter和我得到在JMeter中的错误

Response code:Non HTTP response code:Java.net.SocketException Response message: Non HTTP response message: Connection reset by peer.socket write error. 响应代码:非HTTP响应代码:Java.net.SocketException响应消息:非HTTP响应消息:连接被peer.socket写入错误重置。

Is this an easy fix? 这是一个简单的解决方法吗?

If you totally sure that this is a problem on JMeter, not application under test side, you can try working it around as follows: 如果您完全确定这是JMeter上的问题,而不是被测应用程序上的问题,则可以尝试按以下方法解决:

  1. In user.properties file (located in JMeter's "bin" folder) user.properties文件中(位于JMeter的“ bin”文件夹中)

     httpclient4.retrycount=1 hc.parameters.file=hc.parameters 
  2. In hc.parameters file: hc.parameters文件中:

     http.connection.stalecheck$Boolean=true 
  3. Restart JMeter to pick the properties up. 重新启动JMeter以拾取属性。

References: 参考文献:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM