-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
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
JSONReader OOM #4510
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OOM代码行:
JSONReader reader = new JSONReader(bufferedReader);
代码说明:
在Flink中要对一个500M左右的JSON处理,仅仅是打开就OOM,这里不应该消耗大量的缓存。
具体日志:
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3332)
at com.alibaba.fastjson2.JSONReaderUTF16.(JSONReaderUTF16.java:111)
at com.alibaba.fastjson2.JSONReader.of(JSONReader.java:3506)
at com.alibaba.fastjson.JSONReader.(JSONReader.java:22)
at com.alibaba.fastjson.JSONReader.(JSONReader.java:17)
at org.lxh.JsonFileSource.run(JsonFileSource.java:29)
The text was updated successfully, but these errors were encountered: