We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用com.alibaba.fastjson2.JSON#writeTo(java.io.OutputStream, java.lang.Object, com.alibaba.fastjson2.JSONWriter.Feature...)序列化大对象(数组,200M)时会出现OutOfMemoryError,查看是因为MAX_ARRAY_SIZE限制为64M。请问为什么是限制64M呢,可以修改这个值吗?
The text was updated successfully, but these errors were encountered:
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.16-SNAPSHOT/ 新增加一个JSONWriter.Feature.LargeObject,启用后就可以写大于512M的对象,请帮忙用2.0.16-SNAPSHOT帮忙验证,2.0.16版本预计在10月30日前发布
Sorry, something went wrong.
限制64M是为了有一些循环引用的场景导致内存占用过大的保护措施
2.0.16-SNAPSHOT使用JSONWriter.Feature.LargeObject写大于200M的对象没问题。感谢!
https://github.com/alibaba/fastjson2/releases/tag/2.0.16 问题已修复,请用2.0.16版本
No branches or pull requests
使用com.alibaba.fastjson2.JSON#writeTo(java.io.OutputStream, java.lang.Object, com.alibaba.fastjson2.JSONWriter.Feature...)序列化大对象(数组,200M)时会出现OutOfMemoryError,查看是因为MAX_ARRAY_SIZE限制为64M。请问为什么是限制64M呢,可以修改这个值吗?
The text was updated successfully, but these errors were encountered: