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)