Sentry OOM & GlitchTip Error-Spike Diagnostics (8 Guides)
Deep-dive Linux RSS, cgroup, and queue diagnostics explaining why self-hosted Sentry OOMs below 16 GB and how to troubleshoot GlitchTip event spikes.
8 Technical Triage Guides
Sentry ClickHouse/Kafka OOM
Self-hosted Sentry boots 20+ containers including ClickHouse, Kafka, ZooKeeper, Snuba, Relay, and Symbolicator—consuming 15.4 to 28.5 GB RSS even at low traffic.
Celery Backlog Event Spike
When a frontend loop or bad deploy fires 50,000 errors in 10 minutes, unbounded Celery worker memory grows rapidly until the worker container is OOM-killed.
PostgreSQL Partition Bloat
Retaining 60-90 days of raw JSONB event payloads without automated partition cleanup causes PostgreSQL disk bloat, slow issue search, and autovacuum RAM spikes.
Redis Broker OOM Storms
When Celery workers lag behind ingestion or fail on malformed payloads, Redis buffers unacknowledged JSON tasks in RAM until Redis hits maxmemory or triggers OOM.
JS Source Map Spike
Unstripped 15-40 MB Webpack or Vite .js.map files force Celery workers to allocate hundreds of megabytes per stacktrace resolution.
Gunicorn Worker 504
Too many Gunicorn workers exhaust RAM on 2-4 GB VPS, while too few workers cause /api/store ingest requests to time out behind Nginx or Caddy.
Session Replay Surge
Enabling SDK session replays multiplies payload size 10x-30x compared to plain JSON exception stacktraces, straining both ingestion memory and NVMe disk.
Docker Exit Code 137
When total container RSS crosses the Linux cgroup or host RAM ceiling on a 2-4 GB VPS, the kernel shoots the highest-scoring OOM process with Exit 137.