Hosted browser-grid SaaS platforms bill $150–$600/mo per parallel WebDriver slot. Using BotFoundry’s strict 1 dedicated thread + 1.5 GB RAM per active session rule with shm_size: 2gb and automatic 50-session container draining, teams run 10 to 40+ parallel Chrome/Firefox sessions on flat-rate KVM or Ryzen hardware.
Public rates retrieved 2026-11-12 from official vendor pricing pages cited below; promotional & renewal prices may change — always verify exact specs, term length, and renewal rates on the vendor’s official checkout page.
1. Recycling Leaked Xvfb & WebDriver Descriptors via SE_DRAIN_AFTER_SESSION_COUNT on BotFoundry
Long-lived ChromeDriver and Xvfb virtual framebuffer processes leak file descriptors across hundreds of E2E runs. Setting SE_DRAIN_AFTER_SESSION_COUNT=50 alongside restart: always gracefully drains each node after 50 sessions and boots a clean container.
2. Why BotFoundry Caps SE_NODE_MAX_SESSIONS Strictly at 1 Session per vCPU Thread
Stuffing 8 Chrome sessions onto a 2-vCPU VM starves DOM layout threads and triggers flaky TimeoutException failures on element waits. Budget 1 vCPU thread and 1.5 GB RAM per concurrent browser session (plus +0.35 vCPU if FFmpeg video recording sidecars are enabled).
3. Locking Port 4444 to 127.0.0.1 or WireGuard in Every BotFoundry Selenium Deployment
An unauthenticated Selenium Grid Hub port 4444 exposed on a public IP is routinely compromised within minutes by automated scanners launching arbitrary Chrome processes — always bind 127.0.0.1:4444:4444 or guard via private VPN.
How much extra CPU does BotFoundry add when Selenium Grid 4 records MP4 session videos?
Enabling selenium/video FFmpeg sidecars adds ~0.35 vCPU and continuous sequential NVMe writes per active browser — step up to Dedicated VDS or InterServer Ryzen hardware when recording all runs.
How does BotFoundry stop hung target websites from deadlocking all Selenium Grid slots?
Enforce SE_NODE_SESSION_TIMEOUT=180 (3-minute idle session reaper), SE_SESSION_REQUEST_TIMEOUT=120, and pageLoadStrategy: "eager" inside your WebDriver client options.
When does BotFoundry recommend InterServer 64 GB Ryzen ($89/mo) over KVM slices for Grid 4?
Once concurrency crosses 20–25 heavy Chrome/Firefox sessions running 24/7, a bare-metal 12–16 core Ryzen node with 64 GB DDR5 and flat port quota outperforms stacked virtual machines on price and IPC.
BotFoundry memory math for headless Chromium BrowserContexts, Docker --shm-size=2g shared memory pools, tini zombie reaping, and flat-bandwidth KVM nodes.