Chrome Pain ChroniclesPosted by Swapnil Tamse
Since some days, my PC has been having a bad time with multitasking.
For instance if I am working on word files or playing some simple youtube videos, or some IDE development, my PC used to stall for half a minute, keep everything hanging up and come back to normal state as if taking a deeeep deeep breath.
It used to be my break for checking my twitter feed on my cell. ;D
Today I decided to go to the root of this problem.
As an old time windows troubleshooter, I did the usuals.
Removed unused programs, did some msconfig tweaks and some registry cleaning.
But, the issue persisted.
This is what my task manager had to show.
It showed more processes than the tabs opened.
This was unusual because there were only 3 chrome windows open and hardly 10 open tabs altogether; one playing youtube (Rich content) rest all were light websites.
Turned out that the extensions were majorly hogging my memory.
This is what I stumbled upon trying to solve this problem:
Unlike most current web browsers, Google Chrome uses many operating system processes to keep web sites separate from each other and from the rest of your computer.
There is a main process which chrome runs.
It handles the UI, tab management and other stuff.
Then come the subordinate processes:
- The Renderer processes handles rendering of the page.
Usually, each tab consumes one renderer process. But some sometimes same domain uses same renderer (upto 20 tabs). 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 Processes: Plugins such as Flash, Quicktime, or Adobe Reader have higher priority than a webpage.
Also to keep Renderer processes in the sandbox, plugins are given separate memory.
When one plugin crashes, other plugins or tabs or the main process will not be affected.
- Extension Processes:
As in the plugin processes, separating extensions into processes is to keep them in sandbox.
Similarly a crashing extension will not take the whole browser down.
Solution if you are stuck up:
Just go to chrome’s very own task manager (esc+shift).
End tabs and extensions hogging ur memory. It will flush the memory.
Don’t worry about losing tab content, your URL will be intact which you can reload later.
I had made comparisons with firefox too, which uses singular processes.
But being a die hard chrome fan, I will keep mum.
We will answer your queries at the earliest.