large amount of com.microsoft.kiota.store.InMemoryBackingStore$Pair objects are allocated, memory leak?
还没有人认领这个 Issue。
评估
调研方向
首先,在持久化模型的同时使用 Java SDK 6.20.0 复现 users/groups delta API 的问题,然后检查报告的 com.microsoft.kiota.store.InMemoryBackingStore$Pair 分配。在列出的 Java 和 OS 配置下,对比重复调用时的内存使用情况;当持续增长和过度保留 Pair 的原因得到解释并解决,并且为该场景添加回归检查后,即视为完成。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Java
- 星标
- 444
- 派生
- 154
- 平均合并
- 18 小时 28 分钟
- 30 天内合并 PR
- 4
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoftgraph/msgraph-sdk-java 的其他 Issue
-
status:waiting-for-triage type:bug
难度 2/5 1-3 小时 新手友好度 68/100
microsoftgraph/msgraph-sdk-java#2610 ·
-
status:waiting-for-triage type:bug
难度 3/5 1-2 天 新手友好度 55/100
microsoftgraph/msgraph-sdk-java#2656 ·
-
status:waiting-for-triage type:bug
难度 4/5 3-5 天 新手友好度 38/100
microsoftgraph/msgraph-sdk-java#2654 ·
-
status:waiting-for-triage
难度 4/5 3-5 天 新手友好度 35/100
microsoftgraph/msgraph-sdk-java#2639 ·
-
status:waiting-for-triage type:bug
难度 3/5 1-2 天 新手友好度 35/100
microsoftgraph/msgraph-sdk-java#2589 · 1 条评论 ·
查看 microsoftgraph/msgraph-sdk-java 的全部 Issue
相似的 Issue
-
certification
难度 1/5 1 小时以内 新手友好度 80/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's 未关闭bug ecr
难度 2/5 1-3 小时 新手友好度 75/100
-
Needs: Triage Type: Feature request
难度 2/5 1-3 小时 新手友好度 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 65/100
github/copilot-sdk#2760 ·