Jackson处理超长字符串导致内存溢出

内容概览
我在项目中遇到了一个棘手的问题,偶尔会报出String length exceeds the maximum length的异常,次数多了会导致infraserver出现Java heap space的内存溢出错误。这个问题让我非常困惑,不知道是什么原因导致字符串如此之长。
福禄娃
2024-09-04 15:12
评论6
Caused by: com.fasterxml.jackson.core.exc.StreamConstraintsException: String length (20026295) exceeds the maximum length (20000000) at com.fasterxml.jackson.core.StreamReadConstraints.validateStringLength(StreamReadConstraints.java:324) ...

芋道快速开发平台 Boot + Cloud

星球已运营 4 年零 211 天

累计超过  34000+  位成员加入

4小时前

最近更新

40000+

内容数

进入星球主页