Headless Chromium & Playwright Piece Memory Cliff (+420 MB / Tab)
Every concurrent headless Chromium browser step adds 380-520 MB RSS; running 4 browser flows on an 8 GB node triggers immediate swap thrashing.
Measured Unit Economics & Telemetry
Standard HTTP and JSON webhook flows consume tens of megabytes per worker, giving operators false confidence before enabling headless browser scraping. A single Chromium instance launched by a custom Playwright/Puppeteer piece allocates 380-520 MB RSS plus /dev/shm buffers. On 2+ concurrent browser workers, stepping up to Hostinger KVM 4 (16 GB RAM) is mandatory.
| Resource / Billing Line | Audited Value | FinOps Impact |
|---|---|---|
| 1 Concurrent Chromium Tab | +420 MB avg RSS | Requires shm_size >= 512m to avoid crash |
| 2 Concurrent Chromium Tabs | +840 MB peak RSS | Minimum safe tier: KVM 2 (8 GB) with cap |
| 4 Concurrent Chromium Tabs | +1,680 MB peak RSS | Requires Hostinger KVM 4 (16 GB RAM) |
| Browser Zombie Leak Risk | High without close() | Always wrap page.close() in try/finally |
Implementation & Configuration Checklist
- Cap Browser Concurrency Separately: Limit Playwright-heavy flows or use a dedicated single-concurrency queue so browser tabs never multiply by 12x.
- Increase /dev/shm Allocation: Add shm_size: 512m or pass --disable-dev-shm-usage to Chromium flags in custom code steps.
- Offload Static Scrapes to HTTP + Cheerio: Parse server-rendered HTML with lightweight fetch/Cheerio (~15 MB) instead of launching Chromium.
PLAYWRIGHT_TAB_RSS_MB=420
shm_size: 512m
CHROMIUM_ARGS="--disable-dev-shm-usage --no-sandbox"
Workflow Infrastructure FAQ
Why does Chromium crash inside Docker with "Page crashed" on large pages?
Docker defaults /dev/shm to 64 MB; Chromium shared memory fills 64 MB quickly unless shm_size is raised or --disable-dev-shm-usage is passed.
Can Make.com run custom Playwright headless browser scripts?
No. Make.com lacks native headless Chromium execution, making self-hosted Activepieces on KVM 4 uniquely valuable for browser automation.