OData / OData/AspNetCoreOData

Memory leak after upgrading to .net 9 with large PageSize

Open
#1,370 7 comments 1 reaction 1 assignee View on GitHub

@xuzhg is already working on this.

Since Dec 10, 2024.

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

Description

Upgrade project to net9.0 without changing anything. Doing 4th request it consumes ~5gb ram. There is no memory leak with .net8

Just do 4 request to https://localhost:7071/odata/humanentity
Project uses in memory db, but have [EnableQuery(AllowedQueryOptions = AllowedQueryOptions.All, PageSize = 1_000_000_000)] large page size.

Repro repository
https://github.com/valentasm1/Odata9MemoryLeak/tree/main

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.