Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
414 views
in Technique[技术] by (71.8m points)

并发下出现spring的requestbody丢失数据的问题

一次请求的数据量比较大,因为包含图片信息,我们在filter里拦截做requestbody的日志记录,因为流只能读取一次因此重新作了参数的封装。control层用spring的@requestbody来获取参数,在做压力测试的时候发现在200个并发的情况下会出现请求参数丢失的情况,报“org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing”的错误,不知道是什么原因引起的,jvm配置问题还是代码层面的问题?另一个数据量小的请求接口就没有这个错误。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...