-
Notifications
You must be signed in to change notification settings - Fork 161
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
Memory leak after upgrading to .net 9 with large PageSize #1370
Comments
@valentasm1 can you clarify, are you only changing the .NET version in your Also, it's interesting that you are using such a large page size. Paging is actually disabled by default if you're selecting that page size in order to avoid paging. Can you give some more insight about why you've chosen this page size so we might be able to help you work around the issue while we investigate? |
I only change from |
@valentasm1 Can I set a remote call with you to understand the details? If avaiable , please share a link So I can join it? |
I use your repro, run the sample and keep eye on Diagnostic tools on Visual Studio: And I took four snapshots for the memory:
This is the diff between 1 and 2: When first request coming, the ASP.NET Core will finish a lot of configurations so the memory usage is a little bit heavy. Can you point me how do you monitor the memory changes? |
TaskManager. |
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
The text was updated successfully, but these errors were encountered: