Module memory

Module memory 

Source
Expand description

Memory monitoring thresholds and constants

Constantsยง

CHECK_INTERVAL_MS
Memory check interval in milliseconds (100 ms)
CRITICAL_TTL_REDUCTION_FACTOR
TTL reduction factor under critical pressure (reduce from 5min to 30s)
DEFAULT_REPORT_THRESHOLD_MB
Default threshold for memory pressure report (MB)
HARD_LIMIT_BYTES
Hard memory limit in bytes (600 MB) - triggers aggressive eviction
MAX_CHECKPOINT_HISTORY
Maximum memory checkpoint history to keep
MIN_RSS_CHECKPOINT_BYTES
Minimum RSA size to track in checkpoints (1 MB) Minimum RSS size to track in checkpoints (1 MiB)
SOFT_LIMIT_BYTES
Soft memory limit in bytes (400 MB) - triggers warning and TTL reduction
WARNING_TTL_REDUCTION_FACTOR
TTL reduction factor under warning pressure (reduce from 5min to 2min)