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

PostgreSQL Partition & Autovacuum Memory 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.

Measured GlitchTip & Sentry Telemetry

GlitchTip stores event payloads and issue aggregates inside PostgreSQL. When GLITCHTIP_MAX_EVENT_LIFE_DAYS is left at excessive defaults or Celery Beat stops executing cleanup tasks, dead tuples accumulate and force expensive sequential scans and vacuum passes.

Subsystem / SignalMeasured FootprintOperational Impact
2.5M events @ 30d retention14 - 22 GB NVMe650 - 950 MB Postgres RSS
15M events @ 90d retention75 - 125 GB NVMe1.6 - 2.3 GB Postgres RSS
Healthy shared_buffers Ratio20 - 25% Host RAMLeaves headroom for Celery & OS cache

Step-by-Step Triage & Compose Remediation

  1. Check largest Postgres tables: Query pg_total_relation_size on events_event and issue tables to spot unpruned partitions.
  2. Enforce retention env vars: Set GLITCHTIP_MAX_EVENT_LIFE_DAYS=30 (or 14-90) and verify Celery Beat is running.
  3. Size shared_buffers accurately: Pass -c shared_buffers=512MB (on 2-4 GB VPS) or 1536MB (on 8 GB VPS) in docker-compose.yml.
SELECT relname, pg_size_pretty(pg_total_relation_size(relid))
FROM pg_catalog.pg_statio_user_tables
ORDER BY pg_total_relation_size(relid) DESC LIMIT 8;

Diagnostic FAQ

Does GlitchTip auto-delete old events?

Yes, provided run-celery-with-beat.sh is running and GLITCHTIP_MAX_EVENT_LIFE_DAYS is configured.

Why not give Postgres 50% RAM on a 4 GB node?

Celery workers, Django Gunicorn, Redis, and OS page cache share that 4 GB; >25% shared_buffers causes OOM.

Related Error Diagnostics Guides

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