Monday, August 20, 2012

Multiple Chrome Processes, Only One Tab Open: Why?

I was having some performance problems and looked at task manager (Ctl-Alt-Del) to see what was running.  I had about 10 Chrome processes, even though I only had one tab.  Why?  I found this answer in one of the Google forums: 


Main Process

Chrome's main process handles the UI, tab management and so on. There are usually only one process that do the work.

Renderer Process(es):

The renderer handles rendering the page. Roughly, each tab consume one, but some special case make tabs into a single one - same domain uses same renderer, and no more than 20 renderer - newly opened tabs will use existing renderer if exceeded. Renderer Process runs in a sandbox that can increase security by separating in sandboxes. When one renderer crashes, other tabs or the main process will not be affected, and users will be able to reload the page by refreshing.

Plugin Process(es):

As plugins should have higher permission than a webpage, and in order to keep Renderer Processes in the sandbox, plugins are separated. Also when one crashes, other plugins or tabs or the main process will not be affected.

Extension Process(es):

Similar to the others, separating extensions into processes is to keep them in sandbox... and a crashing extension will not let the whole browser down.

Built-In Task Manager

There is a built-in task manager for Chrome. Press Shift+Esc or "right click on title bar -> Task Manager" to launch it. You can see clearly - and may end processes if one's not responding. Ending processes this way will keep those addresses on your browser, with a "sad tab" replacing it, as mentioned in "Renderer Processes".

You may have a look at http://blog.chromium.org/2008/09/multi-process-architecture.html or read the Google Chrome comics http://www.google.com/googlebooks/chrome/index.htm


I followed the "right click on title bar" method and clicked on the "Task Manager" option. I found that there was one process for chrome itself, one for the single tab that was displayed, and one for each of the add-ons. Mystery solved!

No comments:

Post a Comment

Printfriendly

Print Friendly and PDF