线上EntityUtils.toString(resEntity,"UTF-8") 处理时间很长问题

httpClient http 耗时久,排查是非流式处理返回数据的EntityUtils.toString(resEntity,"UTF-8")这句耗时很久,返回数据量太大了

相关文档与讨论

https://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/util/EntityUtils.html#toString(org.apache.http.HttpEntity,java.lang.String)

https://stackoverflow.com/questions/13686753/entityutils-tostring-takes-too-long-on-big-responses

http://httpcomponents.10934.n7.nabble.com/EntityUtils-ToString-is-too-slow-td28716.html

发布了441 篇原创文章 · 获赞 110 · 访问量 57万+

猜你喜欢

转载自blog.csdn.net/qq_26437925/article/details/102638124
今日推荐