Skip to main content
ONLINE TRACELITE BENCH // SENTRY OOM VS LEAN GLITCHTIP AUDIT: 2026-10-26 | TARGET: 1.8-6.5 GB RSS | ZERO CLICKHOUSE
GlitchTipRAM
GlitchTipRAM Disclosure: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero extra cost (Disclosures).
Error Diagnostics // TraceLite Bench

Django Gunicorn Worker OOM & 504 Ingest Gateway Timeouts

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.

Measured GlitchTip & Sentry Telemetry

GlitchTip handles both browser UI queries and high-volume SDK /api/{id}/envelope/ ingestion on its Django web service. If WEB_CONCURRENCY is set to 8 on a 2 GB VPS, Gunicorn alone claims >1.6 GB; if set to 1, a heavy 90-day issue query blocks incoming SDK envelopes.

Subsystem / SignalMeasured FootprintOperational Impact
2 GB VPS Web ConcurrencyWEB_CONCURRENCY=2320 - 450 MB RSS total
4-8 GB VPS Web ConcurrencyWEB_CONCURRENCY=2 to 4420 - 780 MB RSS total
Worker Recycle Threshold--max-requests=2000Prevents slow Django memory drift

Step-by-Step Triage & Compose Remediation

  1. Check web container logs: Look for [CRITICAL] WORKER TIMEOUT or SIGKILL in docker compose logs web.
  2. Set explicit WEB_CONCURRENCY: Use 2 workers on 2-4 GB VPS and 4 workers on 8-16 GB VPS instead of auto-detecting high core counts.
  3. Enable Gunicorn request recycling: Pass GUNICORN_CMD_ARGS="--max-requests=2000 --max-requests-jitter=200".
WEB_CONCURRENCY=2
GUNICORN_CMD_ARGS="--max-requests=2000 --max-requests-jitter=200 --timeout=60"

Diagnostic FAQ

Why does GlitchTip eat extra RAM on a 4-vCPU VPS with default settings?

Auto-scaling Gunicorn or Celery concurrency based on CPU cores spawns too many Python processes for a 4 GB node.

Should I put Cloudflare or Nginx in front of GlitchTip?

Yes—Nginx or Caddy handles TLS termination and gzip compression cheaply outside Python workers.

Related Error Diagnostics Guides

GlitchTipRAM: Cut error-tracking RAM from 16 GB to 1.8-6.5 GB Launch Hostinger KVM