You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GC.GetConfigurationVariables() not respecting "System.GC.HighMemoryPercent" #84198
I'm trying to set the garbage collection properties in a runtimeconfig.template.json file, following the documentation in Garbage collector config settings.
But not all my settings are being picked up, including System.GC.HighMemoryPercent. However, some properties like System.GC.HeapHardLimitare being picked up.
I'm not sure whether my settings are invalid, the documentation is wrong, or the GC.GetConfigurationVariables() isn't returning the actual config values.
Reproduction Steps
I have the following runtimeconfig.template.json file in a .net 7 console application. I have no related environment variables set.
Activity
mangod9 commentedon Apr 1, 2023
@mrsharm can you take a look at this?
mrsharm commentedon Apr 1, 2023
Yes, taking a look. I was able to repro. I will have a fix soon.
asrichesson commentedon Apr 1, 2023
Looks like
System.GC.RetainVMis also not being set.Correctly display the GCSettings specified in the runtimeconfig json …