Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Max memory usage of a chrome process (tab) & how do I increase it?

I am running several thousand https clients through chrome on one tab, I seem to be hitting a limit in the browser, when I check task manager the chrome process for that tab is using a whopping 897MB so I am assuming there is some sort of limit (900MB~).

Are there any chrome wizards around that could explain this? Also it would be ideal if I could increase the max limit so I am able to run more clients through a single tab.

like image 275
mitchellt Avatar asked Jul 05 '13 14:07

mitchellt


People also ask

How much memory can a Chrome tab use?

Each new tab that is opened in the browser will consume more RAM. In Chrome, 15 tabs can range from 1 GB to 2 GB of memory used, depending on the media content. Take a look at how much memory your Chrome tabs and extensions by copying chrome://memory-redirect/ in your browser.

Which Chrome tab is using most memory?

Click the three dots at the top right of the browser, then hover over More tools, then select Task Manager. You can fast-track this process by pressing SHIFT+ESC on Windows. You should see a few processes running, the tabs you have open, and any extensions you've installed.

How much memory can Chrome handle?

Google Chrome (desktop 64bit version) The latest version of Google Chrome (desktop 64-bit version), ver 80.0, can handle up to 4GB of memory per tab as of April 2020.

Do Chrome tabs take up RAM?

Chrome splits every tab, plugin and extension into its own process. This leads to higher RAM usage since it has to duplicate some tasks for every tab. Also, chrome's prerendering feature can cause higher memory usage. Certain extensions websites may also leak memory causing higher RAM usage.


2 Answers

By default v8 has a memory limit of 512MB on 32-bit systems, and 1.4GB on 64-bit systems. The limit can be raised by setting --max_old_space_size to a maximum of 1024 (1 GB) on 32-bit and 4096 (4GB) on 64-bit. You should be able to set this parameter when launching Chrome from a shell in Linux, or as an argument to the shortcut path in Windows.

like image 173
Mihai Tomescu Avatar answered Oct 15 '22 16:10

Mihai Tomescu


Aggregated answer based on Mihai Tomescu's answer and other resources:

  1. Maximum memory per tab seems to be about 1.8GB when running a x64 Windows OS, according to this answer

  2. Increasing tab memory works fine by changing Chrome link address from "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" to "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --max_old_space_size=4096

The difference can be quickly tested using this huge image which will crash Chrome using default memory settings (Google Chrome ran out of memory while trying to display this webpage), but will render fine after increasing the memory limit.

like image 22
Alexei - check Codidact Avatar answered Oct 15 '22 16:10

Alexei - check Codidact