How to set the value of gcTrimCommitOnLowMemory to enabled in a shared service running .NET 6?

Viewed 47

we have a service written in .NET 6 and deployed to Google Cloud where it is running on Linux. The project doesn't have the Aspnet.config file in the .NET directory, so I can't follow this MS article to enable gcTrimCommitOnLowMemory.

For this projects the settings are defined in appsettings.json or in launchsettings.json or in .csproj file or in the Startup.cs.

What is the correct syntax to set gcTrimCommitOnLowMemory enabled="true" in one of these files?

0 Answers
Related