When hosting multiple .NET APIs on a single machine, unmanaged memory can grow continuously even without a memory leak. The fix is to disable server garbage collection (GC) and switch to workstation GC mode, which reduces memory consumption at the potential cost of slightly higher CPU usage. This is especially relevant for containerized .NET services co-located on one server.

1m read timeFrom timdeschryver.dev
Post cover image
Table of contents
On this pageUse caseThe Solution