Commit 26bcadf
devid-bot
fix(devserver): memory-conscious GC profile for the Hot Reload host
The dev-server host is a long-running background daemon on the developer's
machine, but inherited the Microsoft.NET.Sdk.Web default (Server GC), which is
throughput-oriented and retains committed memory. Under Hot Reload each emit
allocates tens of MB of transient garbage; Server GC feels no pressure to
collect it, so RSS climbs into multi-GB over a session.
Align the host GC profile with a memory-conscious background daemon:
- ServerGarbageCollection=false + ConcurrentGarbageCollection=true (Workstation
background GC: pressure applied early, transient garbage collected).
- runtimeconfig.template.json: System.GC.ConserveMemory=5 (compact heap +
decommit to OS), HeapHardLimitPercent=66 (relative last-resort ceiling),
HighMemoryPercent=70 (react earlier under machine memory pressure).
Fixes #242031 parent a37fe6d commit 26bcadf
2 files changed
Lines changed: 21 additions & 0 deletions
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
11 | 17 | | |
12 | 18 | | |
13 | 19 | | |
| |||
99 | 105 | | |
100 | 106 | | |
101 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
102 | 116 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments