26

After leaving a bunch of pages open in Chrome, my computer gets sluggish. Windows Task Manager shows that some pages take a lot of RAM:

enter image description here

  1. Why do they take so much RAM?
  2. Is there a way to know how much RAM each page takes, so that I investigate?

Thank you.

3
  • 9
    Chrome has its own task manager too. And enter chrome://memory-redirect/ if you're up for some more.
    – slhck
    Dec 15, 2011 at 12:29
  • 1
    Thanks for the tip. Turns out Chrome doesn't use one process for one tab/page: A process can point to one tab and multiples web pages, so I can't tell which is using how much RAM. Dec 15, 2011 at 14:24
  • 3
    All chrome://memory pages are gone now.
    – kenorb
    Mar 1, 2017 at 12:41

3 Answers 3

24

Chrome is the heaviest consumer of RAM in the browser market. It trades increased memory usage for increased speed. If you run low on available RAM however, it becomes the slowest browser in the market (compared to one that would be small enough in resource usage to remain fully in RAM instead of paging to hard disk.)

Here the Chromium development team discusses the good and bad of this memory model used in Chrome.

And here you can configure Chrome to use alternative memory models with various tradeoffs, including "firefox style" single process mode: http://dev.chromium.org/developers/design-documents/process-models

0
9
  1. Why do web pages take so much RAM?

Chrome uses a per-process model which means that for each tab (or group of related tabs), it uses a separate process instead of a separate thread. That basically means that each tab is a separate running program. That way, if any crash, they go down by themselves instead of taking down the whole browser (it does the same thing for plugs and most extensions).

This has its obvious benefits (the sandboxing being the primary one), but of course it also has disadvantages like the fact that each one has memory overhead, which means that Chrome uses more RAM overall for the same set of open pages than browsers that do not use a per-process model (other browsers have started moving toward this method since Chrome was released).

As you have noted, the per-process rule does not necessarily mean that every tab gets its own process. It depends on how the page was opened. Using open in new tab or open in new window opens the page/link in the same process as the parent, but open in incognito window opens it in a new process as do the new tab and new window commands.

Another reason that pages take up a lot of RAM is that these days, most web pages include lots of JavaScript and Flash which make them both CPU and RAM heavy (which also means that older systems cannot browse the Internet that comfortably, so there is no longer such thing as a "used, old, but good-for-browsing system"). Worse, plugins and extensions (and possibly even Chrome itself) could leak memory after a while, increasing the memory usage in time.

  1. Is there a way to know how much RAM each page takes, so that I investigate?

Unfortunately there is no (known/easy) way to see the per-page memory usage. The closest way is to press Shift+Esc or right-click the tab strip and select Task Manager to see the per-process memory usage.

One thing you can try is to open each page in a new process (using one of the aforementioned methods) and then compare.

1
  • 1
    Thanks, I was about to ask the question for this answer. I can't believe how a simple web page can take 300MB. Jul 14, 2016 at 13:58
1

Try spanner, tools, developer tools, audits

Lots of suggestions for improving the efficiency of your web page reasons why other people's specific web pages use excessive resources.

1
  • 1
    I'm not talking about my web pages, but rather web pages that I'm reading on the Net and end up sucking so much RAM that I have to bookmark them, restart Chrome, and re-open the pages. Dec 15, 2011 at 14:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.