Remediation Runbooks: jemalloc, Sidekiq Split & PgBouncer
Production-verified remediation runbooks to cut Ruby Puma/Sidekiq RSS by 45%, isolate critical chat queues from slow IMAP jobs, and keep 8-16 GB KVM nodes stable.
Enable jemalloc via LD_PRELOAD on Chatwoot Puma & Sidekiq
Preloading libjemalloc.so.2 replaces glibc ptmalloc2 in official Chatwoot Docker images, flattening Sidekiq and Puma RSS plateaus.
Tune MALLOC_ARENA_MAX=2 & Ruby GC Slots When Using glibc
If custom base images lack libjemalloc, setting MALLOC_ARENA_MAX=2 prevents 8x core arena multiplication across Sidekiq worker threads.
Cap SIDEKIQ_CONCURRENCY & Enforce Deterministic Queue Weights
Oversized SIDEKIQ_CONCURRENCY=25-50 multiplies ActiveRecord connection demand and Ruby heap fragmentation on single-VPS Chatwoot stacks.
Prune Old Chatwoot Notifications & Vacuum PostgreSQL Indexes
Batch-pruning notifications older than 60-90 days keeps PostgreSQL working sets inside host RAM and eliminates inbox query stalls.
Set Distinct Docker mem_limit Caps for Puma, Sidekiq & Postgres
Bounding rails and sidekiq with explicit cgroup mem_limit ceilings protects PostgreSQL shared_buffers and Redis queues from host-wide OOM freezes.
Offload Chatwoot ActiveStorage Attachments to S3 Object Storage
Switching ActiveStorage from local disk to S3-compatible object storage stops attachment disk-full crashes and makes VPS migrations effortless.
Add PgBouncer Transaction Pooling for Multi-Pod Chatwoot
PgBouncer multiplexes dozens of idle Puma and Sidekiq database threads onto 15-25 real PostgreSQL backends, slashing backend RAM overhead.
Tune Nginx proxy_read_timeout & Upgrade Headers for ActionCable
Explicit Connection "upgrade" headers, proxy_buffering off, and proxy_read_timeout 3600s stop Nginx from severing idle Chatwoot agent sockets.
Split Sidekiq into Fast Critical/High & Background Default/Low Pods
Running two lightweight Sidekiq containers—one dedicated to critical/high queues and one for mailers/low—keeps live chat delivery sub-second.
Public Chatwoot KVM & Cloud Rate Ledger (2026-10-31) — Remediation Hub (9)
| Provider & Plan | Spec | Intro Rate | Renewal | Isolation | Chatwoot Fit | Link |
|---|---|---|---|---|---|---|
| Hostinger KVM 2 — KVM 2 (2 vCPU EPYC / 8 GB RAM / 100 GB NVMe) | 2 vCPU EPYC · 8 GB RAM · 100 GB NVMe | $4.79/mo | $7.99/mo | 16 TB Transfer · jemalloc 8 GB Safe Floor | 5-25 agents · 10k-45k msgs/day · Core Chatwoot + pgvector | Open Hostinger KVM 2 |
| Hostinger KVM 4 — KVM 4 (4 vCPU EPYC / 16 GB RAM / 200 GB NVMe) | 4 vCPU EPYC · 16 GB RAM · 200 GB NVMe | $9.99/mo | $15.99/mo | 16 TB Transfer · Split Sidekiq Pods + PgBouncer | 25-85 agents · 45k-200k msgs/day · Intercom exit production node | Open Hostinger KVM 4 |
| Vultr Cloud Compute 8 GB — Regular Cloud (4 vCPU / 8 GB RAM / 160 GB NVMe) | 4 vCPU · 8 GB RAM · 160 GB NVMe | $40.00/mo | $40.00/mo | Hourly Billing · 32 Global Edge PoPs | 15-40 agents · Low-RTT regional ActionCable WebSocket hub | Open Vultr Cloud Compute 8 GB |
| Vultr High Frequency 16 GB — High Frequency (4 vCPU 3.8+ GHz / 16 GB RAM / 320 GB NVMe) | 4 vCPU High-Clock · 16 GB RAM · 320 GB NVMe | $96.00/mo | $96.00/mo | Fast NVMe WAL + Dedicated Webhook Burst IOPS | 50-120 agents · Heavy webhook concurrency & vacuum throughput | Open Vultr High Frequency 16 GB |
Tariffs verified 2026-10-31 by SidekiqHeap Triage. Introductory and standard renewal prices are displayed side by side.
- Hostinger KVM VPS Plans — KVM 2 (8 GB RAM, $4.79/mo intro, $7.99/mo renew) and KVM 4 (16 GB RAM, $9.99/mo intro, $15.99/mo renew) verified 2026-10-31.
- Vultr Cloud & High Frequency Compute — Cloud Compute 8 GB ($40.00/mo) and High Frequency 16 GB ($96.00/mo) flat hourly-capped rate cards verified 2026-10-31.
- Intercom Public Seat Pricing — Intercom Advanced ($85/seat/mo monthly or $74/seat/mo annual baseline + $0.99/Fin AI resolution) verified 2026-10-31.
- Chatwoot Self-Hosted Documentation — Official Rails Puma, Sidekiq worker separation, PostgreSQL pgvector, Redis persistence, and ActionCable environment flags verified 2026-10-31.