OData / OData/AspNetCoreOData

Memory leak on DataSourceDepedentCache

Open
#160 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
505
Forks
186
PR merge metrics
No merged PRs in 30d

Description

Unfortunately, I can't provide a source code and I couln't reproduce this problem in simple project. BUT tested it by dotMemory.
DataSourceDepedentCache is taking about 700mb memory. I think it should be less. Here is snapshot:

image
image

I would like to know how can I fix it. It can be related with puting dynamic route prefix. I have a lots of entities and controllers and basecontroller have a dynamic prefix. The structure of project looks like to this: https://github.com/komdil/ODataCoreTest/tree/dynamicPrefixIssue

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked ODataCoreTest repository's dynamicPrefixIssue branch and inspect the project structure described in the report. Profile DataSourceDepedentCache with dotMemory while using many entities, controllers, and a dynamic route prefix, then compare memory behavior with and without that prefix. Done means the suspected retention path is reproduced and its impact or cause is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.