BF BotFoundry
BOTFOUNDRY // UNATTENDED BOT HARDENING RUNBOOK & RAM SIZER

24/7 Unattended MT5, Freqtrade & Headless Playwright /dev/shm Hardening Runbook

We model deterministic 4-layer DDR5 memory (OS kernel footprint, shared Docker/Wine64 runtime & /dev/shm pools, active terminal or BrowserContext heaps, plus a 20%–30% volatility buffer) on BotFoundry so unattended trading bots and browser workers survive multi-week runs without OOM kills.

Use our interactive BotFoundry RAM calculator below to size 1 to 50+ concurrent instances across Windows Server 2022 RDP (2.80 GB base) or Ubuntu 24.04 systemd (0.65 GB base), then tick through all 6 persistent OS hardening guards saved locally in your browser.

Chapter 1 — BotFoundry Multi-Instance MT4/MT5, Freqtrade & Playwright /dev/shm RAM Sizer

We calculate exact vCPU threads, 4-zone DDR5 RAM, and Docker /dev/shm or AutoLogon watchdog flags from official runtime documentation.

1A. BotFoundry Runtime Architecture
1B. Active Terminal / BrowserContext Count
1C. Chart Bars / Indicator / DOM Density
1D. Host Operating System & Supervisor
MQL5-EA • 6 vCPU • 12 GB DDR5 Dedicated VDS Cores (Zero-Noisy-Neighbor Tier)

Zone 1 — BotFoundry OS Kernel Base

2.8 GB
Windows Server 2022 RDP

Zone 2 — BotFoundry Runtime & /dev/shm Pool

0.5 GB
AutoLogon + 10s Watchdog

Zone 3 — BotFoundry Active Instance Heap

3.36 GB
5–10 × 1.00x HEAP

Zone 4 — BotFoundry Volatility Buffer & Total Tier

12 GB DDR5 (6 vCPU)
Buffer +1.47 GB (Raw 8.1 GB)

Native Win32 Desktop GUI (~2.80 GB base) required for commercial MT4/MT5 .dll Expert Advisors and AutoLogon recovery.

BOTFOUNDRY FORMULA MATCH #1

UltaHost Windows RDP & Dedicated VDS

Ulta VDS 16GB Dedicated ($37.50/mo)

Pre-licensed Windows Server 2022 RDP & dedicated VDS threads for multi-terminal MT5 and browser pods

Verify UltaHost VDS Specs via BotFoundry →
BOTFOUNDRY ALTERNATIVE #2

InterServer Secaucus NJ KVM & Ryzen Dedicated

NJ KVM 8 Slices — 16GB ($24/mo Price-Lock)

Secaucus New Jersey facility with Price-Lock monthly billing and 64GB+ AMD Ryzen bare-metal options

Review InterServer NJ Specs via BotFoundry →
BOTFOUNDRY ALTERNATIVE #3

Vultr 3.5GHz+ High Frequency Compute

HF 16GB / 4 vCPU 3.5GHz+ ($96/mo)

3.5GHz+ single-thread clock speed with hourly billing in Tokyo, Singapore, London, Frankfurt & New Jersey

Inspect Vultr 3.5GHz+ HF Tiers via BotFoundry →
Running heavy Freqtrade Hyperopt or staging a 32 GB Playwright /dev/shm pool? Check hourly sandbox options: Inspect Vultr $300 Trial Terms via BotFoundry →

Chapter 2 — BotFoundry 6-Step Unattended 24/7 Bot Hardening Checklist (Saved in LocalStorage)

Tick each production safeguard as you configure your server. Your completion counter in the left BotFoundry rail persists automatically across sessions.

  1. Step 1 — BotFoundry Windows AutoLogon & 10s Task Scheduler Watchdog for terminal64.exe

    On Windows Server 2022 RDP nodes running commercial .dll Expert Advisors, an unplanned host reboot leaves MT4/MT5 logged out at the lock screen unless AutoLogon and a high-performance polling task are active.

    • powercfg /setactive SCHEME_MIN
    • reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1 /f
    • schtasks /create /tn "BotFoundry_MT5_Watchdog" /sc minute /mo 1 /ru SYSTEM /tr "powershell.exe -File C:\ops\mt5-watchdog.ps1"
  2. Step 2 — BotFoundry Linux systemd Restart=always & cgroup v2 MemoryMax Guard

    For Ubuntu 24.04 Freqtrade, Hummingbot, and Python/Node bots, we bind cgroup v2 MemoryMax ceilings slightly below physical RAM and protect live order daemons with OOMScoreAdjust=-500.

    • Restart=always && RestartSec=5
    • MemoryHigh=5500M && MemoryMax=6144M
    • OOMScoreAdjust=-500
  3. Step 3 — BotFoundry Docker --shm-size=2g & tini Zombie Reaper for Headless Chromium

    Docker mounts /dev/shm at only 64 MB by default, crashing Playwright and Puppeteer V8/Skia renderers mid-page. Expand /dev/shm to 2048 MB+ and enable PID 1 tini reaping so exited browser tabs never leak gigabytes.

    • docker run --init --shm-size=2g --restart=unless-stopped mcr.microsoft.com/playwright:v1.49.0-noble
    • NODE_OPTIONS="--max-old-space-size=4096"
  4. Step 4 — BotFoundry chrony Sub-Millisecond NTP Drift Guard Against -1021 RecvWindow Errors

    Signed HMAC-SHA256 exchange order requests fail immediately if virtualized KVM clock drift crosses 1,000 ms during heavy CPU bursts. Enforce chronyd step-corrections across all Ubuntu nodes.

    • sudo apt-get install -y chrony && sudo systemctl enable --now chrony
    • makestep 0.1 3 # /etc/chrony/chrony.conf
    • chronyc tracking
  5. Step 5 — BotFoundry Kernel vm.swappiness=10 & Emergency 4 GB NVMe Swap Cushion

    Setting vm.swappiness=10 keeps active Python/JVM/Chromium heaps pinned in fast DDR5 RAM up to 90% occupancy while holding a 4 GB Gen4 NVMe swapfile strictly as an anti-OOM shock absorber.

    • sudo fallocate -l 4G /swapfile && sudo chmod 600 /swapfile && sudo mkswap /swapfile && sudo swapon /swapfile
    • sudo sysctl -w vm.swappiness=10
    • sudo sysctl -w net.ipv4.tcp_slow_start_after_idle=0
  6. Step 6 — BotFoundry Ring-Buffer Docker JSON & journald Log Rotation Caps

    Verbose WebSocket tick traces and Chromium console logs can silently fill a 100 GB NVMe disk in 14 days, halting SQLite WAL commits. Cap both Docker json-file rings and systemd-journald storage.

    • {"log-driver":"json-file","log-opts":{"max-size":"50m","max-file":"3"}}
    • SystemMaxUse=500M # /etc/systemd/journald.conf
    • sudo systemctl restart systemd-journald

Chapter 3 — BotFoundry Public Vendor Pricing & Spec Ledger (Retrieved 2026-11-12)

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.

Vendor & Official Source URL Published Hardware Spec Public Rate (2026-11-12) BotFoundry Workload Fit Partner Route
Vultr
https://www.vultr.com/pricing/
High Frequency Compute (1–12 vCPU, 2–48 GB DDR5 NVMe) From $6.00/mo (HF 2GB $12.00/mo, Hourly Billing) 3.5GHz+ Freqtrade, Hummingbot & Tokyo/NJ/LDN Linux bots Check Vultr HF Specs via BotFoundry →
Hostinger
https://www.hostinger.com/vps-hosting
KVM 1–8 AMD EPYC NVMe (1–8 vCPU, 4–32 GB DDR5) From $4.99/mo promo term (KVM 4 16GB $10.49/mo) Playwright --shm-size=2g pools & 1-Click n8n Queue Mode Check Hostinger KVM via BotFoundry →
UltaHost
https://ultahost.com/vds-hosting
Windows RDP VPS & Dedicated VDS (4–64 GB DDR5 ECC) From $16.50/mo Win/Linux VPS (VDS 16GB $37.50/mo) Multi-terminal MT4/MT5 .dll EAs & 15–50+ VDS pods Check UltaHost VDS via BotFoundry →
InterServer
https://www.interserver.net/vps/
Secaucus NJ KVM Slices & Ryzen Bare-Metal (4–64 GB+) From $6.00/mo KVM ($89.00/mo Ryzen 64GB Price-Lock) US-East NJ bots & high-bandwidth Selenium/Playwright Check InterServer NJ via BotFoundry →
ChemiCloud
https://chemicloud.com/wordpress-hosting
LiteSpeed NVMe Web Relay (2–4 GB CloudLinux Isolated) From $2.95/mo promo term (Verify Renewal Schedule) Static Telegram Mini-App UI bundles & uptime status pages Check ChemiCloud Relay via BotFoundry →
BOTFOUNDRY 15-SECOND RUNBOOK BRIEFING (9:16 HD MP4)

How BotFoundry Models 24/7 MT5, Freqtrade & Playwright /dev/shm RAM Headroom

We calculate 4-layer DDR5 memory (OS kernel, shared Docker/Wine64 runtime, multi-instance terminal or BrowserContext heaps, plus 25% volatility buffer) on BotFoundry so unattended bots survive overnight spikes without home-PC disconnects.

Chapter 4 — BotFoundry Memory Zones, /dev/shm Guards & 8 Workload Blueprints

Explore our four deterministic subsystem diagrams and open any of the 8 specialized BotFoundry workload runbooks.

BotFoundry 4-layer DDR5 RAM equation diagram for MT5 and Playwright
BotFoundry 01 — OS + Runtime/shm + Instances + Volatility Buffer
BotFoundry Docker Chromium --shm-size=2g vs 64MB default crash diagram
BotFoundry 02 — Docker --shm-size=2g & PID 1 tini Zombie Reaper
BotFoundry unattended Windows AutoLogon and Linux systemd supervisor loop
BotFoundry 03 — AutoLogon Task Scheduler & systemd Restart=always
BotFoundry sysctl vm.swappiness=10 and Docker ring-buffer log rotation diagram
BotFoundry 04 — vm.swappiness=10 & 50m×3 Ring-Buffer Log Rotation

Chapter 5 — BotFoundry Unattended MT5, Docker /dev/shm & systemd Troubleshooting FAQ

How does BotFoundry calculate 4-layer DDR5 RAM for multi-instance MT4/MT5 and Playwright servers?

Our sizer engine sums four deterministic components: (1) OS kernel base (0.65 GB Ubuntu 24.04 headless vs 2.80 GB Windows Server 2022 RDP), (2) shared runtime & /dev/shm pool (0.50–2.20 GB), (3) active terminal or BrowserContext count multiplied by per-unit heap (0.36–0.78 GB) and chart/DOM density (0.85x–1.35x), plus (4) a 20%–30% volatility buffer snapped up to the next standard DDR5 VPS tier.

Why do headless Playwright containers crash on 8 GB VPS nodes without BotFoundry’s --shm-size=2g flag?

Regardless of total host RAM, Docker restricts /dev/shm to 64 MB unless overridden. Modern SPA pages overflow 64 MB of Chromium Skia/V8 shared memory within minutes; setting shm_size: "2gb" and init: true eliminates shared-memory crashes and reaps zombie renderer processes.

When does BotFoundry escalate MT5 workloads from shared KVM VPS to Dedicated VDS threads?

Once a trader runs Windows Server RDP or scales past 15–30 concurrent Expert Advisor terminals, synchronized tick bursts during CPI/FOMC releases can cause noisy-neighbor CPU contention on shared hypervisors, so our formula prioritizes Dedicated VDS cores (such as UltaHost VDS).

Why are BotFoundry’s /compare/ pages marked noindex while /bots/ runbooks are indexed?

We follow strict editorial methodology: deterministic sizing equations and OS hardening checklists (/en/, /bots/, /methodology/) are indexed, whereas head-to-head latency comparisons under /compare/ focus strictly on published vendor specs with a visible direct host-level telemetry verification on your target instance notice until multi-day hardware ICMP/TCP packet logs are archived.

Where is checklist completion state stored when I tick steps in the BotFoundry runbook?

All 6 hardening checkboxes save strictly inside your local browser localStorage under key bf_runbook_checks_v2 so your readiness counter persists across BotFoundry pages with zero server-side tracking or accounts.

How often does BotFoundry verify public VPS pricing and how do /go/ partner links work?

Public rates in our vendor table were retrieved on 2026-11-12 directly from Vultr, Hostinger, UltaHost, InterServer, and ChemiCloud official pricing pages. Promotional and renewal prices may change at any time, so always verify at checkout; clicking /go/ links may earn BotFoundry a referral commission at no extra cost to you.

UltaHost Win RDP & VDS (BotFoundry) From $16.50/mo (retrieved 2026-11-12)
Inspect Specs on BotFoundry →