Expand description
RSS watchdog: samples memory periodically, logs above threshold, and writes a synthetic crash report when RSS crosses a critical level so the existing crash-report flusher ships it through the same pipeline on next startup.
Constants§
- ENV_
RSS_ CRITICAL_ MIB - ENV_
RSS_ SAMPLE_ SECS - ENV_
RSS_ WARN_ MIB - Environment variables that tune the watchdog.
Functions§
- spawn
- Spawn the watchdog in the background. Idempotent — calling it more than once in the same process is a no-op.