[Launch options](https://cdpfleet.com/docs/options)

# `memory`

Give the session 2, 3 or 4 times your plan's memory; it counts as that many times the threads.

**Use it for:** Memory-heavy work that would otherwise end with `session_memory_limit`: many tabs at once, big single-page apps, long infinite scrolls, or large PDFs and screenshots.

**Browsers:** [Google Chrome](https://cdpfleet.com/docs/browsers/chrome#opt-memory), [Microsoft Edge](https://cdpfleet.com/docs/browsers/edge#opt-memory), [Brave](https://cdpfleet.com/docs/browsers/brave#opt-memory), [Opera](https://cdpfleet.com/docs/browsers/opera#opt-memory), [Naver Whale](https://cdpfleet.com/docs/browsers/whale#opt-memory), [Yandex Browser](https://cdpfleet.com/docs/browsers/yandex#opt-memory), [Chromium](https://cdpfleet.com/docs/browsers/chromium#opt-memory), [Patchright](https://cdpfleet.com/docs/browsers/patchright#opt-memory), [Rebrowser](https://cdpfleet.com/docs/browsers/rebrowser#opt-memory), [Camoufox](https://cdpfleet.com/docs/browsers/camoufox#opt-memory), [Firefox](https://cdpfleet.com/docs/browsers/firefox#opt-memory), [WebKit](https://cdpfleet.com/docs/browsers/webkit#opt-memory).

## Details

-   **Type:** `integer`
-   **Default:** 1
-   **Example:** `{"memory":2}`

A multiplier of your plan's per-session memory (Community 2 GB, shared 4 GB, dedicated 6 GB; headful sessions get 512 MB more for the display). The session's weight is multiplied too: headless with `"memory": 2` takes 2 threads, headful 4, and its minutes are used up as fast. The launch response returns the effective `weight` and `memory_mb`.

Only `1`, `2`, `3` or `4` as a JSON number; anything else (e.g. `4096` or `"2x"`) is refused with `400 invalid_memory`. A launch that would go over your threads gets `429 threads_exceeded` as usual, so a Community headful session can't use it. The tab cap (50) stays the same.

## Used in

-   [Case 80: How many tabs fit in one session, by plan, browser and "memory"](https://cdpfleet.com/docs/cases/tabs-and-memory-by-plan)
-   [Case 72: Stay under the tab and memory caps: reuse a few pages, close what you're done with](https://cdpfleet.com/docs/cases/stay-under-the-caps)
-   [More memory for one heavy session](https://cdpfleet.com/docs/examples#memory)

All options: [launch options](https://cdpfleet.com/docs/options).

---
Source: https://cdpfleet.com/docs/options/memory · Markdown: https://cdpfleet.com/docs/options/memory.md · All docs for AI tools: https://cdpfleet.com/llms.txt
