Max memory usage of a chrome process (tab) & how d

2019-02-04 07:53发布

Hi 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 because I cannot find anything on the net, also it would be ideal if I could increase the max limit so I am able to run more clients through a single tab.

Thanks!

2条回答
Summer. ? 凉城
2楼-- · 2019-02-04 08:07

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.

查看更多
倾城 Initia
3楼-- · 2019-02-04 08:12

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.

查看更多
登录 后发表回答