Back to Knowledge Hub
Deployment

Chrome Memory per Tab in Automation: Three Numbers

Measure the same Chrome session three ways at 1, 5 and 20 tabs, then choose the memory number that answers your capacity question.

BotBrowser Team

Chrome Memory per Tab in Automation: Three Numbers
Documentation

Want the structured docs for Deployment?

This article lives in the editorial library. For step-by-step setup, reference material, and ongoing updates, jump into the docs section.

“Chrome memory per tab” is not one number. In one persistent headless Chrome 158 session, summed process RSS grew from 582,483,968 bytes at 1 tab to 990,511,104 bytes at 5 tabs and 2,515,484,672 bytes at 20 tabs. Page JavaScript heap grew from 11,200,000 to 56,000,000 and 224,000,000 bytes over the same steps. A browser task-manager reading was not available in headless mode, so it was not substituted with a guessed value. BotBrowser can make browser/profile inputs explicit, but it does not cap process memory or turn one host’s per-tab value into a portable capacity constant.

The useful capacity question decides the measurement. Process RSS answers how much resident memory the whole browser tree is using on the host. A task manager answers how the browser attributes private and shared memory to its own processes or pages when that view is available. Page JS heap answers how much JavaScript memory the owned application allocated. They are related observations, not three spellings of the same value.

Three memory views for the same Chrome session at one, five and twenty tabs: summed process RSS, an unavailable headless task-manager reading, and page JavaScript heap. Each maps to a different capacity question.

TL;DR

  • Summed process RSS includes browser, renderer and helper tasks. Dividing it by tab count does not produce an additive per-tab allocation.
  • Page JS heap measures JavaScript objects in the owned page main world, not renderer overhead or shared browser memory.
  • The browser task-manager view was unavailable in this headless run; record that gap rather than inventing a number.
  • Measure the intended tab counts and workload. Do not publish one universal MB-per-tab constant from this series.

Contents

One session, three measurements

The run used one persistent headless Chrome context on a macOS arm64 host. Chrome reported Chrome/158.0.8127.37; CDP reported protocol version 1.3. Every tab opened the same owned fixture: a title, one paragraph and a new Uint8Array(10000000) allocation per page. The session moved through 1, 5 and 20 open tabs rather than launching a separate browser for each count.

Process RSS was measured by summing the resident set size of Chrome processes whose command line contained the temporary profile path. That includes the browser executable, rendering workers and helper tasks such as GPU, network and storage. The process count rose from 7 to 11 to 26 across the three steps.

Page JavaScript heap was measured with performance.memory in each page and then summed. The owned fixture allocated a Uint8Array(10000000) per page; performance.memory reported 11,200,000 used bytes per page in this controlled case. That makes the series useful for explaining scope, not for predicting a real application’s objects.

The browser task-manager view was not available in headless mode. Chrome’s task manager is a browser UI surface; the absence of that UI is a measurement limitation. A headful run could expose the view, but it would also change the execution mode. Do not report a task-manager value that was not read.

The three observations answer different questions:

MeasurementWhat it includesWhat it is good for
Summed process RSSBrowser, renderer and helper task resident memoryHost or container capacity
Browser task managerBrowser-attributed private/shared process accountingBrowser-side diagnosis when available
Page JavaScript heapObjects in the owned page main worldApplication memory behavior

The measurement names are not interchangeable. A large RSS number can include shared libraries and processes that serve all tabs. A small page heap can sit inside a much larger rendering worker. A task-manager value, when available, may attribute shared memory differently from a simple RSS sum.

The 1, 5 and 20 tab series

The measured rows were:

TabsChrome processesSummed RSS bytesPage JS heap bytes
17582,483,96811,200,000
511990,511,10456,000,000
20262,515,484,672224,000,000

The RSS growth from 1 to 20 tabs was 1,933,000,704 bytes in this run. The page heap growth was 212,800,000 bytes. The difference does not mean “Chrome overhead is exactly the measured difference,” because the process tree, shared resources and helper tasks changed as tabs were added.

The measured page-heap values were 11,200,000, 56,000,000 and 224,000,000 bytes. They grew by 11,200,000 bytes per added page in this controlled fixture, not by exactly the Uint8Array byte length.

The process count is evidence too. A renderer may serve more than one tab under process sharing, and additional helper tasks may appear. A per-tab calculation that assumes exactly one process per tab will not describe this run.

Process count should be sampled at the same moment as RSS. If the count is taken before pages settle, a rendering worker may still be starting; if it is taken after some tabs close, the value describes a different workload. Record the timestamp and tab count together.

The process list also shows why the browser executable is not the whole memory footprint. Chrome separates work across multiple processes, and shared resources can be reused. A host metric that counts only the top-level executable will understate the total footprint of a live browser session.

That is not a reason to invent a private-memory number. It is a reason to choose a measurement boundary that matches the question. For host capacity, include the browser tree and the host’s other processes. For page behavior, use the page heap and an application profiler. For browser diagnosis, use the task-manager view when available.

The fixed array makes the page-heap series deterministic enough to illustrate scope. A production application might allocate different objects, retain them across navigation or share data through workers. Repeat the measurement with the actual workload before using it for capacity planning.

A single sample is not a growth curve. The synthetic array establishes that each page can allocate a known object, but it does not model garbage collection, retained DOM nodes, decoded images or page lifecycle transitions. Run the same fixture with repeated samples when the question is about leaks or sustained growth.

The one-second wait is also part of the method. It gives pages time to render and the browser time to start the workers needed by the fixture. A different wait may change RSS without changing the tab count. Keep the wait, fixture and sampling command together in the evidence record.

Use the same browser executable for each count. A Chrome update between the one-tab and twenty-tab samples would mix a browser change into a tab-count comparison. Record browser.version() and Browser.getVersion before the series so a later reviewer can see that the engine stayed fixed.

The absolute RSS values are host-specific. Browser build, operating system, graphics backend, extensions, profile data and the fixture all affect them. The series demonstrates a method and records a local observation; it is not a universal benchmark.

Why per-tab division misleads

Suppose the 20-tab RSS value is divided by 20. That produces a plausible-looking number, but it assigns shared browser memory to every tab as if each tab owned a private slice. The browser executable, shared libraries, network service and GPU or software rendering path may serve all tabs.

The same division can understate the first tab. Startup libraries and browser services may already be resident before the first page is opened. A tab count of one therefore contains infrastructure that is not repeated twenty times, while a tab count of twenty may reuse some of it. Neither endpoint is a clean per-tab unit.

Use differences only as a description of the two configurations. If the one-tab run used 582,483,968 bytes and the twenty-tab run used 2,515,484,672 bytes, the difference is an observation about those two runs. It is not a promise that adding the next tab will add the same amount again.

The safest capacity workflow is empirical: choose tabCount=20 (or the intended count), run the intended workload, sample the process tree, and compare with the host limit. If the result is close to the limit, test tabCount=21 rather than extrapolating from a slope.

The same warning applies to the 1-tab baseline. Its value includes startup work that later tabs reuse. Subtracting it from the twenty-tab value leaves a difference between two configurations, not an additive allocation.

Page JS heap has a different boundary. It can grow in a predictable way for a synthetic fixture, but it excludes the renderer’s C++ objects, DOM memory, decoded images and process overhead. A page heap series cannot answer how much host memory a browser fleet will consume.

The task-manager view, when available, helps with a different attribution question. It may show a browser executable, rendering worker, graphics worker and service workers separately, with private and shared memory columns. Use it to diagnose the browser tree; use RSS or container metrics for host capacity. Do not mix their units or call one a replacement for the other.

If a team needs task-manager evidence, run a headful session with the same fixture and record the browser build, operating system and window state. The headful mode may add UI and graphics work, so compare it with another headful run, not with the headless series. The method must match the evidence.

For a page leak, use a heap snapshot or allocation timeline instead of repeatedly dividing RSS. For a renderer crash, keep the process exit status, stderr and host memory evidence. For a slow page, profile the application rather than assuming memory is the cause.

The correct capacity record contains the tab count, process count, workload, browser version, operating system, profile and measurement time. Without those inputs, a per-tab number from another run is not reproducible.

A capacity decision table

Start with the question, then choose the number:

QuestionUse this measurementDo not infer
Will this host or container stay below its memory limit?Process RSS plus host/container metricsA universal per-tab constant
Which Chrome process is large?Browser task manager when availableThat page JS heap explains the process
Which application object grew?Page JS heap or application profilerShared browser memory
Can another tab fit?Same workload at the next tab countLinear extrapolation from one run
Did a code change increase retained objects?Repeated page-heap samples after the same fixtureHost RSS alone

The first row is the capacity decision. It uses the whole process tree and the environment’s actual limit. The second row is diagnostic and may require a headful session. The third row is application-level. The fourth is an empirical test. The fifth is a regression comparison, not a per-tab estimate.

Write the decision down before running the measurement. “Will this container stay under 4 GB with twenty tabs?” is a host-capacity question. “Did the new checkout flow retain another 20 MB per page?” is a page-heap question. “Which process is using the most memory?” is a task-manager question. The answers should not be forced into one table.

For a release gate, define the maximum tab count and workload first. Measure RSS at that count on the intended host. Repeat after a browser, profile or application change. Keep the process count and fixture revision beside the value. A limit should come from the deployment’s observed headroom, not from a blog post’s average.

For a container, add /dev/shm, cgroup limits and other processes to the capacity record. A browser can fit inside its RSS budget while the container fails because shared memory, file descriptors or a process limit is exhausted. Memory planning is not just one number.

For a host, include the other tenants. A browser tree can stay below its own observed RSS while the host is already under pressure from another workload. Capacity is a property of the deployment at a moment, not a property of a single tab.

For a browser profile, remember that profile inputs can change what the page allocates and how the browser behaves. They do not make the host’s process tree disappear. Measure the profile and workload together, and keep the result attached to the deployment class.

What BotBrowser changes

BotBrowser documents browser/profile inputs and deployment planning inputs. It can make the browser and profile configuration explicit, and that can affect what the page and browser allocate. It does not provide a universal per-tab memory cap, a hidden task-manager reading or a host-independent RSS value.

The boundary is:

Controlled by the browser/profileControlled by the host and workload
Browser build and profile inputsAvailable RAM and container/cgroup limits
Page-visible behaviorNumber of tabs, pages and workers
Owned fixture and measured valuesRenderer/helper task composition
Profile-level application behaviorShared memory, GPU and other process resources

BotBrowser documents deployment and profile inputs that teams can reproduce. The BotBrowser deployment documentation covers those inputs. The figures are observations, not a capacity commitment.

Method, failures and limits

One persistent headless Chrome 158 session was used on macOS arm64. It opened the same owned title/paragraph/array fixture at 1, 5 and 20 tabs, then sampled after one second. RSS used the profile-path process filter described above. Page heap came from performance.memory. The browser task manager was unavailable in headless mode.

The fixture array was synthetic. The page heap values are therefore a scope demonstration, not a forecast for an application. The process path filter could miss a helper task that omits the profile path or include a process outside the browser tree. The process count is a local observation, not a rule about Chrome’s process model.

The host was shared during the run, so RSS could include allocator behavior and other activity. The run did not measure a headful task manager, a Linux container, a GPU backend or a real application. Those require separate experiments with their own environment records.

The filter is useful for an owned fixture but may not match every operating system or launch mode. A different deployment should state its own filter and inspect the process tree before trusting the sum.

The page heap values came from the browser’s performance.memory surface. They are useful for comparing the same fixture under the same build, not for a cross-browser benchmark. The run did not test memory pressure, forced garbage collection or a long-lived navigation cycle.

No result establishes a memory limit for Chrome, a maximum number of tabs, a performance limit or a per-tab budget. A later run should use the same fixture and process filter, then compare values only within the same host and deployment class.

The evidence file retains the source hashes, the three measured rows and the unavailable task-manager note. The table is therefore reproducible as a method even though its absolute bytes are not a universal result.

FAQ

Is summed process RSS the same as Chrome’s task manager?

No. RSS sums resident memory for the whole process tree. The task manager uses browser-side accounting that may separate private and shared memory. Use RSS for host capacity and the task manager for diagnosis when it is available.

Why not divide total memory by the number of tabs?

Because browser, renderer and helper tasks share memory and may serve multiple tabs. Division produces a number but not an additive allocation. Measure the next tab count instead.

Why was the task-manager value unavailable?

The run used headless Chrome, which has no browser task-manager UI. A headful run could expose it, but that changes the execution mode. The missing reading is recorded rather than replaced with an estimate.

Does page JS heap include the DOM and images?

Not in the way capacity planning needs. performance.memory reports JavaScript heap metrics for the page main world. It excludes renderer internals, decoded images and shared browser memory.

What should a capacity record contain?

Record tab count, fixture revision, browser version, operating system, profile, process count, RSS, page heap, host/container limit and measurement time. Add a task-manager reading only when the run actually produced one.

For neighboring capacity work, compare Browser context memory in Chromium 151 and Headless Chrome in Docker. For deployment context, see Docker deployment guide and headless server setup.

Sources

Practical conclusion

Use process RSS for host and container capacity, the browser task manager for process attribution when the run exposes it, and page JS heap for application objects. In this session, 1, 5 and 20 tabs produced 582,483,968 / 990,511,104 / 2,515,484,672 RSS bytes and 11,200,000 / 56,000,000 / 224,000,000 page-heap bytes. The numbers are a local method demonstration, not a universal per-tab constant. BotBrowser can make the environment explicit, but the capacity decision belongs to the measured host, workload and limits.

#Chrome Memory#Tabs#Automation#Rss#Js Heap

This article is part of the guide: Browser Deployment and Release: Operations Map

Run the same check in BotBrowser

Load a profile, keep the signals you just read about consistent inside the browser, and confirm the result on your own machine before a rollout.