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

Device goes OOM when downloading a lot of resources. #862

Closed
aditya-07 opened this issue Oct 25, 2021 · 0 comments · Fixed by #880
Closed

Device goes OOM when downloading a lot of resources. #862

aditya-07 opened this issue Oct 25, 2021 · 0 comments · Fixed by #880
Assignees
Labels
type:bug Something isn't working

Comments

@aditya-07
Copy link
Collaborator

Describe the bug
Syncing a large number of resources causes OOM issue in the engine.

Component
Core library, SDC library, reference app, or SDC gallery app

To Reproduce
Steps to reproduce the behavior:

  1. Setup the server with a large set of data (some resources should atleast 50,000 in number)
  2. Sync the resource data to the client.

Expected behavior
Data should sync and get stored in the database.

Actual behavior
App crashes because of O.O.M.

Screenshots
If applicable, add screenshots to help explain your problem.
OOM_crash_log.txt

Smartphone (please complete the following information):

  • Device: [e.g. Pixel4a emulator]
  • Android version: [e.g. Settings -> About phone -> Android version]
  • Build number: [e.g. Settings -> About phone -> Build number]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Would you like to work on the issue?
Please state if this issue should be assigned to you or who you think could help to solve this issue.

Side note
Instead of downloading all the resources and then inserting them to the database, maybe be we should insert downloaded page before we fetch a new one.

@aditya-07 aditya-07 added type:bug Something isn't working fhir-engine labels Oct 25, 2021
@aditya-07 aditya-07 added this to To do in FHIR engine library via automation Oct 25, 2021
@aditya-07 aditya-07 self-assigned this Oct 27, 2021
FHIR engine library automation moved this from To do to Done Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants