Skip to content
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

Memory exhausted error #8

Open
kzollove opened this issue Sep 9, 2022 · 2 comments
Open

Memory exhausted error #8

kzollove opened this issue Sep 9, 2022 · 2 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@kzollove
Copy link
Collaborator

kzollove commented Sep 9, 2022

There is a recurring but intermittent error that appears when ingesting a shapefile into R from the database. This error seems to be somehow related to connect/disconnect pattern, as it occurs more frequently if connections are not well managed. However, it does appear after multiple consecutive spatial table imports.

More context:

  • spatial table imports are done in batches of 1000 rows at a time. This was initially put in place to avoid memory problems from spatial imports of ~3000 rows.
  • even with the batch import, mutliple consecutive imports (pulling the same 3k row table in 3-4 times) will cause the error.
  • Since the problem is still occurring after a total of ~10000 rows are imported during a single session, it is worrisome to imagine a larger table failing to load even once.
  • The problem always goes away/ memory resets when the R session is restarted. Obviously, any imported data is cleared and all packages are unloaded.
@kzollove
Copy link
Collaborator Author

Ha! This may just be on my personal computer. Steps for alleviating:

  • change the java heap size that is allowed
  • change the R system variable for memory allocation
    After those changes are made, does this still happen? How often and at what load size?

@kzollove
Copy link
Collaborator Author

kzollove commented Dec 8, 2023

This may or may not affect many new users.

Document the fix and close the issue.

@kzollove kzollove added documentation Improvements or additions to documentation good first issue Good for newcomers labels Dec 8, 2023
@kzollove kzollove transferred this issue from OHDSI/GIS Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
Status: 🏷TODO
Development

No branches or pull requests

1 participant