Conghao97's picture tcftrees's picture
ProgramGen release
d086025
|
Raw History Blame Contribute Delete
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_bytes exceeding 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:

  1. Collect diagnostics:

  2. File issue:

    • Include: Memory profile, configuration, workload description
    • Tag: memory-leak if 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

Related Runbooks