[英]Jmeter Response data:java.io.IOException: Premature EOF
result of debug postpropossor 调试后置结果
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本身存在问题,即您正在接收分块格式的响应,并且并非所有响应部分都可以下载。
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请求采样器的“高级”选项卡上完成。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.