Jmeter响应数据:java.io.IOException:过早的EOF

问题描述 投票:0回答:1

the whole test plan

result of debug postpropossor

settings

qazxsw poi它发生在大约20秒之后,没有太多线程约50个。这个错误的问题是什么?

httprequest

java.io.IOException: Premature EOF at sun.net.www.http.ChunkedInputStream.readAheadBlocking(Unknown Source) at sun.net.www.http.ChunkedInputStream.readAhead(Unknown Source) at sun.net.www.http.ChunkedInputStream.read(Unknown Source) at java.io.FilterInputStream.read(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Unknown Source) at org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:99) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at java.io.FilterInputStream.read(Unknown Source) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.readResponse(HTTPSamplerBase.java:1814) at org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.readResponse(HTTPAbstractImpl.java:500) at org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.readResponse(HTTPJavaImpl.java:296) at org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.sample(HTTPJavaImpl.java:570) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1189) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1178) at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:490) at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:416) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:250) at java.lang.Thread.run(Unknown Source)

java jmeter
1个回答
0
投票

很可能它表明了java.io.IOException: Premature EOF本身存在的问题,即你在SUT收到回复,而不是所有的响应部分都可以下载。

  1. 检查应用程序日志中是否存在任何可疑条目
  2. 确保被测系统有足够的空间可以在CPU,RAM,网络,磁盘,交换等方面运行 - 这可以使用chunked formatJMeter PerfMon Plugin来完成
  3. 确保您的HTTP请求配置与真实浏览器发送的请求完全匹配,即您可能需要添加SSHMon Samples Collector并将其配置为发送真实浏览器正在发送的所有标头。

如果您完全确定问题不在您的SUT端,您可以尝试将HTTP请求采样器的“实现”切换到HTTP Header Manager,这可以在HTTP请求采样器的“高级”选项卡上完成

HTTPClient4

© www.soinside.com 2019 - 2024. All rights reserved.