Skip to main content
Engineering

Sizing a self-hosted scraper: CPU, RAM, concurrency

How much CPU, RAM and concurrency a self-hosted scraper actually needs, with real footprint numbers and what a $5 VPS sustains in practice.

fastcrw
By RecepNovember 25, 20269 min read

By the fastCRW team · Footprint and benchmark figures verified 2026-05-08 · Verify independently on your own hardware before sizing production capacity.

Sizing a self-hosted scraper: what the hardware question actually depends on

Sizing a self-hosted scraper comes down to three inputs: the idle footprint of the binary itself, how many pages you fetch concurrently, and whether those fetches need a browser to render JavaScript. Get those three numbers and the rest of the sizing exercise is arithmetic, not guesswork. This post gives real, measured numbers for one scraper (fastCRW) and the reasoning to translate them to your own workload.

Most sizing guides for scraping infrastructure lean on vague advice ("get a beefy box, scrapers are hungry"). That is true for a headless-browser-heavy pipeline and false for an HTTP-only one. The gap between those two cases is 10-50x in memory, so knowing which one you are running is the first decision, before any VPS purchase.

The idle footprint: binary, not framework

What a single Rust binary costs at rest

A statically linked scraper binary with no Python interpreter, no headless-browser-by-default, and no worker-queue framework sitting underneath it costs roughly this much before you send it a single request: ~8 MB on disk, ~6.6 MB idle RAM, ~50 MB working-set RAM under active load, and ~85 ms cold start. Those are fastCRW's own measured numbers, not an industry estimate.

Compare that to what a Python-based scraping stack with Playwright or Selenium as the default renderer typically ships: a Chromium install alone runs 250-300 MB on disk, and a single open browser context is commonly 150-400 MB of RAM before you have scraped anything. A framework that reaches for a browser by default multiplies your idle cost by roughly two orders of magnitude versus one that reaches for plain HTTP first and escalates to a browser only when a page needs it.

Why this matters for the VPS tier you buy

An idle footprint under 10 MB fits comfortably inside a $5/mo VPS (1 vCPU, 1 GB RAM) with room left for the OS, a reverse proxy, and your own application code. A framework whose baseline is measured in hundreds of MB pushes you toward a 2 GB+ box before you have added any concurrency headroom, the floor, not the ceiling, is already most of a small VPS's RAM budget.

CPU: HTTP-only fetches barely touch it

Where the CPU actually goes

For a plain HTTP fetch (no JavaScript rendering), CPU usage is dominated by TLS handshakes, HTML parsing, and markdown conversion: all of which are fast, single-digit-millisecond operations on a modern core. This is why a $5 VPS with 1 shared vCPU can sustain meaningful concurrency for HTTP-only scraping: the bottleneck is network I/O and target-site latency, not local compute.

Where CPU actually gets expensive

A headless Chrome instance is the opposite story: each rendered page runs a full browser process (JS engine, layout, paint), and that is genuinely CPU-heavy. Expect one Chrome render to use meaningfully more CPU than dozens of HTTP-only fetches combined. If your workload needs JS rendering for most pages (SPA-heavy sites, client-side-hydrated content), budget CPU cores for the browser tier specifically, separate from your HTTP-tier sizing.

RAM: the number that actually gates concurrency

HTTP-only concurrency is memory-cheap

Each concurrent HTTP-only fetch holds a connection, a response buffer, and a parse pass in memory: small enough that dozens of concurrent fetches fit inside a working set well under 100 MB on a lean binary. This is the case where a $5 VPS genuinely sustains high concurrency: memory is not the constraint, your own rate limits and the target sites' tolerance are.

Browser-tier concurrency is memory-expensive

Each concurrent browser context costs 150-400 MB depending on page weight, so a 1 GB box realistically holds 2-4 concurrent browser renders before you are swapping. This is the real ceiling for self-hosted scraping on cheap hardware: not the binary's own footprint, but how many browser contexts you can hold open at once. Size the browser tier by dividing available RAM (minus OS and app overhead) by your measured per-context cost, not by a rule of thumb.

A rough sizing table

VPS tierRAMRealistic HTTP-only concurrencyRealistic browser-tier concurrency
$5/mo1 GBdozens2-4 contexts
$12-20/mo2-4 GBhundreds8-15 contexts
$40-80/mo8-16 GBhundreds-low thousands30-60 contexts

These are structural ratios derived from the per-unit costs above, not a published load test at each tier: measure your own workload's actual page weight and JS-rendering share before committing to a box. See /benchmarks for the underlying latency and success-rate numbers this sizing logic is built on.

Escalation: only render JavaScript when the page needs it

The single biggest lever on hardware cost is whether your scraper tries plain HTTP first and escalates to a browser only on failure, or renders every page in a browser by default. A ladder that goes HTTP-only first, then a lighter JS-capable renderer, then full Chrome only as a last resort keeps the vast majority of traffic on the cheap path and reserves the expensive path for pages that actually need it. fastCRW's default mode does exactly this (render_js: "auto") so you do not have to guess per-URL whether a page needs a browser.

If your current setup renders every page in a browser regardless of whether it needs it, that is very likely the single change that will cut your hardware bill the most: well before you reach for a bigger box.

Cold start: matters for serverless and scale-to-zero deployments

An ~85 ms cold start makes scale-to-zero deployment patterns (a container that spins up per request, or a queue worker that starts fresh) practical without a noticeable latency penalty. A framework with a multi-second interpreter or browser-launch cold start effectively rules out scale-to-zero. You either keep it warm (paying for idle capacity) or eat multi-second first-request latency. If your deployment plan involves autoscaling from zero, cold-start cost belongs in the sizing decision alongside RAM and CPU.

A concrete self-host command

To try this on your own $5 VPS, install the binary and run it as a local server (self-host is free under AGPL-3.0, no signup):

curl -fsSL https://fastcrw.com/install | sh
crw serve --port 3000

Then point requests at it exactly like the managed API, just against localhost:

curl -X POST http://localhost:3000/v1/scrape \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com", "formats": ["markdown"]}'

Watch docker stats or your process monitor while you ramp concurrency. That observed working-set number, not the idle number, is what should drive your final RAM sizing decision.

When self-hosting is not the right call

Self-hosting saves real money at scale but adds operational weight: you own uptime, proxy rotation for blocked targets, renderer upgrades, and disk cleanup for browser profile directories. If your volume is low and irregular, the managed cloud (from $13/mo, 1,000 free credits, no card) is cheaper in total cost once you count your own time. If you are running thousands of pages a day on a schedule and already comfortable operating a small VPS fleet, self-hosting is where the ~8 MB footprint numbers above pay off directly. See /pricing for the exact plan breakpoints, and self-host vs managed scraping API for the fuller trade-off.

How this connects to concurrency limits in general

Hardware sizing and application-level concurrency limits are two different ceilings. You can have RAM headroom and still need to throttle because the target site rate-limits you, or vice versa. For the request-level concurrency and batching side of this (not the hardware side), see concurrent scraping request limits. For running the scraper behind a queue or scheduler on top of the hardware sized here, see scheduled crawls with cron.

FAQ

Can a scraper really run on a $5 VPS?

Yes for HTTP-only workloads: a binary with a ~6.6 MB idle footprint and ~50 MB working set leaves most of a 1 GB box free for OS and concurrency headroom. For a browser-heavy workload doing mostly JS-rendered pages, a $5/1 GB box realistically holds only 2-4 concurrent browser contexts, so throughput is limited even though it technically runs.

How do I know if my target sites need JavaScript rendering?

Try the HTTP-only path first and check whether the content you need is present in the raw response. A renderer ladder that escalates automatically (fastCRW's render_js: "auto") removes the need to classify this per-URL up front. It tries cheap first and only pays for a browser when the cheap path comes back empty.

Sources

FAQ

Frequently asked questions

How much RAM does a self-hosted scraper need?
For HTTP-only scraping, well under 100 MB working-set RAM is enough for dozens of concurrent fetches on a lean binary (fastCRW measures ~6.6 MB idle, ~50 MB working). For JavaScript rendering with a headless browser, budget 150-400 MB per concurrent browser context, since each context runs a full browser process.
Is a $5 VPS enough to self-host a web scraper?
For HTTP-only fetching, yes: a lean binary's idle footprint (roughly 6.6 MB RAM, 8 MB on disk) leaves most of a 1 GB box free. For a workload that needs JavaScript rendering on most pages, a $5/1 GB VPS realistically supports only 2-4 concurrent browser contexts before RAM becomes the bottleneck.
What actually limits scraper concurrency, CPU or RAM?
For HTTP-only fetches, neither is usually the bottleneck first, since parsing and TLS are cheap operations and I/O wait dominates. For browser-based rendering, RAM is almost always the binding constraint, since each concurrent browser context holds 150-400 MB, well before CPU saturates.
Does self-hosting a scraper actually save money over a managed API?
It can at volume: self-hosting under AGPL-3.0 is free beyond your own server cost, so a fixed VPS price replaces a per-page metered bill. At low or irregular volume, a managed plan starting from $13/mo is usually cheaper once you account for the operational time of running proxy rotation, renderer upgrades, and monitoring yourself.

Get Started

Try fastCRW free

Run a live request in the playground — no signup required. Or grab a free API key with 1000 free credits, no credit card.

Continue exploring

More engineering posts

View category archive