mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
runtime.heap.sampled records heap, old space, RSS, external memory and the work in flight every five minutes, every minute at or above 70 % of the heap limit. At 85 % runtime.heap.pressure lists the oldest requests and jobs in flight and the routes most of them share, once, re-armed only after the heap falls below 70 % and thirty minutes pass. A heap-limit crash leaves no other record of what the process was doing. HEALTHLOG_HEAP_SNAPSHOT=1 adds one heap snapshot at that moment into HEALTHLOG_DIAG_DIR (0700 directory, 0600 file), off by default. docs/ops/heap-diagnostics.md warns that a snapshot holds decrypted health data and keys and says how to delete it.