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

large amount of com.microsoft.kiota.store.InMemoryBackingStore$Pair objects are allocated, memory leak? #2235

Open
kindlychung opened this issue Nov 26, 2024 · 0 comments
Labels

Comments

@kindlychung
Copy link

Describe the bug

trying to use the delta api and observed 10s of gigabytes of ram usage from this sdk.

Expected behavior

memory consumption should not be this large for a library doing http requests.

How to reproduce

just periodically call the users/groups delta api and try to persist the user/group models somewhere, you will see the ram usage steadily rising.

SDK Version

6.20.0

Latest version known to work for scenario above?

No response

Known Workarounds

none found atm.

Debug output

Click to expand log
Name,Live bytes,Live objects,Allocated objects,Generations
com.microsoft.kiota.store.InMemoryBackingStore$Pair	93,336,120 B (84.3%)	3,889,005 (81.4%)	15,340,787 (78.9%)	234

image

Configuration

  • OS: ubuntu, fedora
  • Arch: x64, aarch64
  • java: 21, 23

Other information

tried -XX:+UseG1GC without avail

@kindlychung kindlychung added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Nov 26, 2024
@Ndiritu Ndiritu added Status: Needs Investigation and removed status:waiting-for-triage An issue that is yet to be reviewed or assigned labels Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants