gpt4 book ai didi

tomcat - 错误 : org. apache.http.MalformedChunkCodingException: block 末尾有意外内容

转载 作者:行者123 更新时间:2023-11-28 22:27:48 26 4
gpt4 key购买 nike

我正在使用 JMeter 在我的服务器上运行负载测试,我遇到了很多错误,如下所示

org.apache.http.MalformedChunkCodingException: Unexpected content at the end of chunk
at org.apache.http.impl.io.ChunkedInputStream.getChunkSize(ChunkedInputStream.java:244)
at org.apache.http.impl.io.ChunkedInputStream.nextChunk(ChunkedInputStream.java:209)
at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:171)
at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:201)
at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:155)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.readResponse(HTTPSamplerBase.java:1745)
at org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.readResponse(HTTPAbstractImpl.java:412)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:352)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1146)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1135)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:434)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:261)
at java.lang.Thread.run(Unknown Source)

导致这个错误的原因是什么?谢谢。

最佳答案

尝试使用底层 HTTP 传输的不同“实现”来解决这个问题。将其更改为 JavaHTTPClient3.1

一次性完成的最佳选择是使用 HTTP Request Defaults

HTTP Request Defaults Demo

关于tomcat - 错误 : org. apache.http.MalformedChunkCodingException: block 末尾有意外内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34804642/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com