|
Download tasks/data/reverse/abdelstark__guts.8876fcf/environment/docs/high-memory.md from Lego-X/ProgramGen: direct link, hf CLI and curl.
- Browser
- Download file 1.98 kB
-
https://huggingface.co/datasets/Lego-X/ProgramGen/resolve/main/tasks/data/reverse/abdelstark__guts.8876fcf/environment/docs/high-memory.md
- Command line
-
hf download hf://datasets/Lego-X/ProgramGen/tasks/data/reverse/abdelstark__guts.8876fcf/environment/docs/high-memory.md
-
curl -L -o high-memory.md https://huggingface.co/datasets/Lego-X/ProgramGen/resolve/main/tasks/data/reverse/abdelstark__guts.8876fcf/environment/docs/high-memory.md
1.98 kB
Runbook: High Memory Usage
Severity: P3 Impact: Degraded performance, potential OOM kills On-Call Action: Investigate within 4 hours
Symptoms
- Memory usage > 90% of configured limit
- Node becoming slow or unresponsive
- OOM killer messages in system logs
- Increased request latency
-
guts_process_resident_memory_bytesexceeding threshold
Detection
Alert Name: GutsHighMemoryUsage
Query:
Or system-level:
Dashboard: Node Exporter → Memory Usage
Diagnosis
Step 1: Check Current Memory Usage
Step 2: Check Memory Trends
Step 3: Identify Memory Consumers
Step 4: Check for Memory Leaks
If memory continuously grows without plateau, likely a leak.
Step 5: Check Recent Changes
Resolution
Option A: Restart Node (Quick Fix)
If immediate relief needed:
Option B: Reduce Cache Size
Option C: Limit Concurrent Connections
Option D: Tune RocksDB Memory
Option E: Clear Memory Caches
Option F: Add Memory (If Undersized)
For systemd-managed nodes:
For Kubernetes:
Investigation: Memory Leak
If memory continuously grows:
Step 1: Enable Memory Profiling
Step 2: Collect Heap Dump
Step 3: Analyze
Prevention
Set Memory Limits
Always set memory limits in production:
Configure OOM Handling
Monitor Memory Trends
Set up alerting for gradual growth:
Escalation
If memory issues persist after optimization:
Collect diagnostics:
File issue:
- Include: Memory profile, configuration, workload description
- Tag:
memory-leakif growth is unbounded
Post-Incident
- Verify memory usage stabilized
- Document optimal configuration
- Update resource allocations if undersized
- Set up trend-based alerting
- Review capacity planning