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).
Config Fixes // TraceLite Bench

Gunicorn Worker Count & --max-requests Memory Leak Bounds

Locking WEB_CONCURRENCY to 2-4 workers with --max-requests=2000 guarantees predictable web container RAM below 780 MB.

Measured GlitchTip & Sentry Telemetry

Each Gunicorn worker loads the full Django application (~145-195 MB RSS). Bounding worker count to match 2-4 GB VPS budgets prevents silent OOM pressure during concurrent team dashboard browsing and SDK envelope bursts.

Subsystem / SignalMeasured FootprintOperational Impact
2-4 GB VPS Web WorkersWEB_CONCURRENCY=2~320 - 440 MB total web RSS
8-16 GB VPS Web WorkersWEB_CONCURRENCY=4~640 - 780 MB total web RSS
Automatic Recycle Flag--max-requests=2000Prevents multi-week RSS creep

Step-by-Step Triage & Compose Remediation

  1. Set WEB_CONCURRENCY explicitly: Override default CPU-based worker scaling in docker-compose.yml.
  2. Add jittered max-requests: Use --max-requests=2000 --max-requests-jitter=200 so all workers do not restart simultaneously.
  3. Terminate TLS in Nginx/Caddy: Serve static assets and HTTPS outside Gunicorn for faster response times.
environment:
  WEB_CONCURRENCY: "2"
  GUNICORN_CMD_ARGS: "--max-requests=2000 --max-requests-jitter=200"

Diagnostic FAQ

Can 2 Gunicorn workers handle 5M monthly events?

Yes, because /api/store and /envelope requests immediately enqueue into Redis and return 200 OK in milliseconds.

Why include --max-requests-jitter?

Jitter staggers worker recycles so there is never a momentary drop in active Gunicorn processes.

Related Config Fixes Guides

GlitchTipRAM: Cut error-tracking RAM from 16 GB to 1.8-6.5 GB Launch Vultr HF