-
Notifications
You must be signed in to change notification settings - Fork 94
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
Out of memory when saving large mapping object #290
Comments
A quick solution is to increase the amount of memory assigned when running the jar:
|
The warning is unrelated. Java 11 only warns on certain reflective operations (e.g., changing a private method to public at runtime). In a future Java version, it might prohibit those operations. Sometimes a later version of the library (in this case, json-io) will have fixed the access. |
Can you pinpoint in code where the large object is written? It may help to write the object in streaming style rather than collecting the whole dataset in a single object and then write it to disk. |
@blootsvoets The out of memory error is thrown upon creating a string object (json representation of the model). WhiteRabbit/rabbitinahat/src/main/java/org/ohdsi/rabbitInAHat/dataModel/ETL.java Lines 137 to 139 in 172f8c3
|
And som other warnings about illegal operations:
The text was updated successfully, but these errors were encountered: