Cost Models & Sizing
Sizing Formbricks Next.js SSR, PostgreSQL 16 & Redis Memory (1.4–5.2 GB)
Map monthly survey responses (1k–250k) and SDK MAUs (5k–500k) to exact NODE_OPTIONS heap limits, shared_buffers, and Hostinger KVM tiers.
1.4 GB Floor (KVM 2) -> 3.5 GB Mid (KVM 4) -> 5.2 GB Peak (KVM 8)
Three-Container Memory Breakdown in Docker Compose
A self-hosted Formbricks stack pairs a Next.js App Router SSR container (~768–2,048 MB RSS), PostgreSQL 16 (~256–1,536 MB), and Redis 7 (~128–512 MB). Setting explicit deploy.resources.limits.memory guards prevents a traffic spike from triggering the Linux OOM killer.
When to Step Up from 8 GB KVM 2 to 16 GB KVM 4
Hostinger KVM 2 (8 GB RAM) comfortably hosts up to ~50,000 responses/month and 120,000 SDK MAUs (<= 2.8 GB combined RSS), leaving 5+ GB free for OS page cache. Above 2.8 GB projected RSS, KVM 4 (16 GB RAM) provides double the CPU cores and headroom up to 4.2 GB RSS.
36-Month Cost & Capacity Breakdown
| Workload Profile | Next.js Heap / PG / Redis | Total Stack RSS | Target KVM Node |
|---|---|---|---|
| 2.5k resp · 15k MAUs | 806 MB / 256 MB / 256 MB | 1.4 GB | KVM 2 (8 GB) |
| 25k resp · 50k MAUs | 896 MB / 256 MB / 256 MB | 1.7 GB | KVM 2 (8 GB) |
| 90k resp · 200k MAUs | 1,280 MB / 512 MB / 256 MB | 2.9 GB | KVM 4 (16 GB) |
| 220k resp · 450k MAUs | 1,920 MB / 1,024 MB / 512 MB | 4.8 GB | KVM 8 (32 GB) |