简体   繁体   English

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

[英]Jmeter Response data:java.io.IOException: Premature EOF

the whole test plan 整个测试计划

result of debug postpropossor 调试后置结果

settings 设置

httprequest it happend after about 20 seconds,with not too much threads about 50.what's the problem with the error? httprequest是在大约20秒后发生的,大约50个线程没有太多线程。错误是什么问题?

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.io.IOException: Premature EOF java.io.IOException:过早的EOF

Most probably it indicates the problem with the SUT itself, ie you're receiving a response in chunked format and not all response parts could be downloaded. 它很可能表明SUT本身存在问题,即您正在接收分块格式的响应,并且并非所有响应部分都可以下载。

  1. Inspect your application logs for any suspicious entries 检查您的应用程序日志中是否有可疑条目
  2. Make sure that the system under test has enough headroom to operate in terms of CPU, RAM, Network, Disk, Swap, etc. - this could be done using JMeter PerfMon Plugin or SSHMon Samples Collector 确保被测系统有足够的空间来操作CPU,RAM,网络,磁盘,交换等。这可以使用JMeter PerfMon插件SSHMon Samples Collector来完成。
  3. Make sure your HTTP Request configuration exactly matches the request which is being sent by the real browser, ie you might need to add a HTTP Header Manager and configure it to send all the headers which real browser is sending. 确保您的HTTP请求配置与真实浏览器正在发送的请求完全匹配,即,您可能需要添加HTTP标头管理器并将其配置为发送真实浏览器正在发送的所有标头。

If you're absolutely sure that the problem is not on your SUT end you can try switching "Implementation" for your HTTP Request samplers to HTTPClient4 , this could be done at "Advanced" tab of the HTTP Request sampler 如果您完全确定问题不在SUT端,则可以尝试将HTTP请求采样器的“实现”切换到HTTPClient4 ,这可以在HTTP请求采样器的“高级”选项卡上完成。

JMeter HTTPClient实现

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

相关问题 java.io.IOException:过早的EOF - java.io.IOException: Premature EOF java.io.IOException:读取Transfer-Encoding时过早的EOF:分块的HTTP响应 - java.io.IOException: Premature EOF when reading Transfer-Encoding: chunked http response java.io.IOException:读取序列化对象时过早EOF - java.io.IOException: Premature EOF while reading serialized object RestTemplate postForEntity遇到java.io.IOException:过早的EOF错误 - RestTemplate postForEntity experiencing java.io.IOException: Premature EOF error java.io.IOException:通过https下载pdf时过早的EOF - java.io.IOException: Premature EOF while downloading pdf over https 从错误响应中获取数据时出现 java.io.IOException - java.io.IOException when getting data from error response java.io.IOException: 无效的 Http 响应 - java.io.IOException: Invalid Http response java.io.IOException:使用Eclipse读取Java中的EOF Lucene - java.io.IOException: read past EOF Lucene in Java with Eclipse Android中奇怪的“java.io.IOException:EOF”错误 - Strange “java.io.IOException: EOF” error in Android 如何处理java.io.IOException:表单数据损坏:com.oreilly.servlet.multipart.MultipartParser中提前结束? - How to handle java.io.IOException: Corrupt form data: premature ending occuring in com.oreilly.servlet.multipart.MultipartParser?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM