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

PostgreSQL shared_buffers, work_mem & 14–90 Day Retention

Sizing shared_buffers to 20-25% of host RAM and enforcing GLITCHTIP_MAX_EVENT_LIFE_DAYS keeps PostgreSQL fast on 2-8 GB NVMe VPS.

Measured GlitchTip & Sentry Telemetry

PostgreSQL thrives on NVMe IOPS and Linux filesystem page cache rather than oversized shared_buffers inside Docker. Keeping shared_buffers compact lets the OS kernel cache hot B-tree indexes while protecting Celery workers from OOM.

Subsystem / SignalMeasured FootprintOperational Impact
2 GB Node Postgres Flagsshared_buffers=384MBwork_mem=4MB, max_connections=80
4 GB Node Postgres Flagsshared_buffers=768MBwork_mem=8MB, max_connections=100
8 GB Node Postgres Flagsshared_buffers=1536MBwork_mem=16MB, max_connections=150

Step-by-Step Triage & Compose Remediation

  1. Pin shared_buffers and work_mem: Pass explicit -c flags in the postgres command array in docker-compose.yml.
  2. Set 14-90 day retention: Configure GLITCHTIP_MAX_EVENT_LIFE_DAYS=30 and GLITCHTIP_MAX_FILE_LIFE_DAYS=30 in .env.
  3. Verify Beat cleanup logs: Confirm cleanup_old_events runs nightly in worker logs.
command:
  - "postgres"
  - "-c"
  - "shared_buffers=768MB"
  - "-c"
  - "work_mem=8MB"
  - "-c"
  - "effective_cache_size=2048MB"

Diagnostic FAQ

What retention window fits a 50 GB NVMe Hostinger KVM 1 node?

Up to 1.5M monthly events at 30 days retention fits easily inside 50 GB NVMe with room for OS and logs.

Is external managed Postgres required?

No. Local NVMe Postgres inside Docker Compose delivers lower latency and saves $15-$30/mo.

Related Config Fixes Guides

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