large amount of com.microsoft.kiota.store.InMemoryBackingStore$Pair objects are allocated, memory leak?
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start by reproducing the issue with the users/groups delta API in Java SDK 6.20.0 while persisting the models, then inspect the reported com.microsoft.kiota.store.InMemoryBackingStore$Pair allocations. Compare memory usage across repeated calls on the listed Java and OS configurations; done means the steady growth and excessive Pair retention are explained and resolved, with a regression check for the scenario.
Written by the indexing model from the issue text.
Description
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
Configuration
- OS: ubuntu, fedora
- Arch: x64, aarch64
- java: 21, 23
Other information
tried -XX:+UseG1GC without avail
- Dominant language
- Java
- Stars
- 444
- Forks
- 154
- Avg merge
- 18h 28m
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoftgraph/msgraph-sdk-java
-
status:waiting-for-triage type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
microsoftgraph/msgraph-sdk-java#2610 ·
-
status:waiting-for-triage type:bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
microsoftgraph/msgraph-sdk-java#2656 ·
-
status:waiting-for-triage type:bug
Difficulty 4/5 3-5 days Newbie friendliness 38/100
microsoftgraph/msgraph-sdk-java#2654 ·
-
status:waiting-for-triage
Difficulty 4/5 3-5 days Newbie friendliness 35/100
microsoftgraph/msgraph-sdk-java#2639 ·
-
status:waiting-for-triage type:bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
microsoftgraph/msgraph-sdk-java#2589 · 1 comment ·
All issues in microsoftgraph/msgraph-sdk-java
Similar issues
-
certification
Difficulty 1/5 Under an hour Newbie friendliness 80/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's Openbug ecr
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Needs: Triage Type: Feature request
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
github/copilot-sdk#2760 ·