Configuration for the MemoryGuard.

1.2.0

interface MemoryGuardConfig {
    checkIntervalMs?: number;
    maxActiveRefs?: number;
    maxRefAgeMs?: number;
}

Properties

checkIntervalMs?: number

Interval in ms for automatic leak checks. 0 = disabled. The timer is unref()'d so it won't keep the process alive.

0
maxActiveRefs?: number

Max total active refs before emitting a pressure warning.

100
maxRefAgeMs?: number

Max age in ms before a ref is considered a potential leak. Used by checkLeaks().

60000