Skip to content

.NET Core 3.1 GC problem (.NET Core not performing GC when low on memory) #47659

Answered by jkotas
JMan7777 asked this question in Q&A
Discussion options

You must be logged in to vote

You can try setting HeapHardLimit or HeapHardLimitPercent: https://docs.microsoft.com/en-us/dotnet/core/run-time-config/garbage-collector#heap-limit-percent. It will tell GC to stay under the given limit.

Also, you can try turning off server GC by setting <ServerGarbageCollection>false</ServerGarbageCollection>. The server GC has better throughput, but it also needs more slack space to do a good job.

Replies: 2 comments 24 replies

Comment options

You must be logged in to vote
2 replies
@huoyaoyuan
Comment options

@JMan7777
Comment options

Comment options

You must be logged in to vote
22 replies
@JMan7777
Comment options

@Maoni0
Comment options

Maoni0 Feb 12, 2021
Collaborator

@JMan7777
Comment options

@Maoni0
Comment options

Maoni0 Feb 12, 2021
Collaborator

@JMan7777
Comment options

Answer selected by JMan7777
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants