© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
17 replies
dave

❔ OOM well below GCHeapLimit (Could not do a full GC) since .NET7

The GCHeapLimitPercent is set to 75%, which equates to about 3gb in the container - working well in netcore3.1 for a long time.

We've updated to .NET7 and getting some OOM, but our collected heap dump is only showing around 300mb allocated on the GC heaps (looking in dotnet dump analyze dumpheap -stat / eeheaps / analyzeoom).

We catch these dumps with a ASP middleware catching OOM exceptions which calls into Environment.FailFast to let createdump capture a dump (we're using COMPlus_DbgEnableMiniDump etc).

Has anything changed in GC since .NET7 that could affect this? I assume I'm going to have to start looking into unmanaged memory but I can't get the dumps open in dotMemory or VS memory debugger for some reason.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

GC Troubles
C#CC# / help
14mo ago
✅ .NET7 Hotfix via DDL
C#CC# / help
3y ago
Making a field eligible for GC
C#CC# / help
2y ago