fix(health): measure heap pressure against the V8 heap limit (#1409)
The memory alert divided heapUsed by heapTotal. Node sizes heapTotal just above heapUsed and grows it on demand, so a normal process reads 90% or more, and once RSS passed the 512 MB floor the health check raised "Memory elevated" or "critically high" with nothing wrong. The health snapshot now records v8 heap_size_limit and the thresholds divide by it, falling back to heapTotal for snapshots written before this change. The viewer's Heap gauge shows used against the limit, and the alert wording says "of the heap limit". Fixes #1406
R
Rohit Ghumare committed
8deb131f6e76dd51719b8c2bbf23a2228b3fbc5d
Parent: b146382
Committed by GitHub <noreply@github.com>
on 9/25/2026, 4:32:02 AM