Jump to content

Save memory in Chrome by using one process per site


DrKash

Recommended Posts

Save memory in Chrome by using one process per site

When you open the Task Manager on your computer system after starting up Google Chrome and opening a couple of sites, you will notice that Chrome uses one process per tab that you have open in the browser plus one for the browser core and one for the GPU (graphics processing unit).

It is not really something to worry about unless your system is low on RAM as the browser's memory usage is highly affected by the number of processes that it spawns.

The real issue comes to light when you run lots of tabs in the browser, say 100 or even more. While it still depends on the RAM installed if you will notice an impact on the system's performance or not, it is safe to say that you will run into limits eventually.

Tip: you can open chrome://memory-redirect in the browser to display memory information. There you find each tab listed for instance and its process ID. You can use it to find it in the Windows Task Manager.

chrome-processes.jpg

Chrome by default launches each website you open in its own process. Open five pages here on Ghacks in tabs and you get five processes of chrome.exe.

While that is sometimes great for stability and security, as you separate those pages from each other to avoid that an issue in one can take down the whole browser, it may not be worth the memory that is used by that.

You can switch Chrome's way of handling processes with the launch parameter --process-per-site. If you do, Chrome will launch a single process for websites that you open. The five Ghacks pages would all run in the same process instead of five different processes which saves quite a bit of RAM in the process.

To use the parameter simply append it to the Chrome shortcut. On Windows, right-click on the shortcut that you use to launch Chrome and select properties. If the shortcut is attached to the taskbar, right-click a second time on the name of the program when the jumplist opens up.

Locate the target field and append the parameter to the end. Make sure there is a space between chrome.exe and --process-per-site. On my test system, the full line looks like this currently: C:\Users\Martin\AppData\Local\Chromium\Application\chrome.exe --disable-plugins --process-per-site.

chrome-one-process-per-site.jpg

almohtarif.png

You need to restart Google Chrome afterwards before the changes take effect. If you notice issues afterwards, remove the parameter from the shortcut again and everything should turn back to normal.

The method works best if you have a large number of tabs open at any time in Chrome of which at least some share the root domain. It has no effect if this is not the case.

Soiurce:

http://www.ghacks.net/2015/02/08/save-memory-in-chrome-by-using-one-process-per-site/

http://www.th3professional.com/2015/02/blog-post_71.html

Link to comment
Share on other sites


  • Replies 7
  • Views 2.1k
  • Created
  • Last Reply
november_ra1n

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-plugins --process-per-site
After that i am not able to open web-site required flask player --- I guess this workaround disable flash player as we open some website

.

https://www.epikchat.com/chat

0TKv16.png

Windows 8.1 Pro x64 & Google Chrome 64 bit nature browser.

Link to comment
Share on other sites


Yes, but "--disable-plugins" is unrelated to this tip and just another switch that the author happened to have. He shouldn't have had it in the screenshot.

The problem with "--process-per-site" is that it applies to sites of the same domain only. Meaning that it'll help you if you open 10 tabs of this forum but will make no difference in the much more common scenario of 1 tab of this forum and 9 tabs for other sites.

Link to comment
Share on other sites


Memory is there to be used, unused memory is wasted memory. As long as the system can free up the memory when it needs it elsewhere it is not a problem.

Link to comment
Share on other sites


Memory is there to be used, unused memory is wasted memory.

As long as the system can free up the memory when it needs it elsewhere, it is not a problem.

:cheers:

Link to comment
Share on other sites


Memory is there to be used, unused memory is wasted memory. As long as the system can free up the memory when it needs it elsewhere it is not a problem.

That's a canard at this point in Chrome's evolution. Memory is a finite resource. One program hogging it casually at the expense of others -- and that is what happens with Chrome, even when using this switch -- is not optimal, unless all that you use is Chrome. I happen to use other things, too, and want them readily available. It's also why some seek out better adblockers, eschewing, say, AdBlock+ in favor of uBlock.

Link to comment
Share on other sites


That's a canard at this point in Chrome's evolution. Memory is a finite resource. One program hogging it casually at the expense of others -- and that is what happens with Chrome, even when using this switch -- is not optimal, unless all that you use is Chrome. I happen to use other things, too, and want them readily available. It's also why some seek out better adblockers, eschewing, say, AdBlock+ in favor of uBlock.

How do you know because you are swapping or other programs and tasks are killed or because you are looking at the process manager? Because if it is the latter it means NOTHING. TBH I don't know so much about memory management in windows but in linux it's only a problem when the OOM-killer sets in, most memory is used as buffers and cache and freed on demand but I suspect windows behaves the same...

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...