Why Google Chrome increase the memory usage on eac

2019-02-11 02:31发布

问题:

When I open the Google Chrome task manager I can see the amount of memory use for each task/tab.

Each time I load a page in a tab I can see how the amount of memory is increased. I've done it with facebook.com, It starts in 80MB, after 25 reloads task manager says the amount of memory used is 546MB!!

Is that normal? Is it a bug which I should report to Google?

I've discovered it after notice my Google Chrome is getting slow.

My version of Chrome is Versión 33.0.1750.117

回答1:

It's not normal and I've tested it myself in a couple of sites and it seems like a bug and we should report it.



回答2:

Definitely it's a Google Chrome issue, it has been fixed in the latest version (33.0.1750.152).

Unfortunately Google has not confirmed me this issue, but it's working now.



回答3:

Although the Chrome team has fixed a few memory leaks, it seems like they still have not fixed all of them (see here). In my particular case, however, I was able to solve the problem with the following JavaScript snippet:

window.addEventListener('unload', function () {
    document.documentElement.innerHTML = '';
});

Hope this helps someone. I have limited it to Chrome with browser sniffing:

var isChrome = window.chrome && /Google/.test(navigator.vendor) && !/OPR|Edge/.test(navigator.userAgent);


回答4:

I had the same problem on Mac OS X 10.6.8 (Snow Leopard) with both Chrome and Firefox. I solved the problem by switching back to the 32-bit kernel.

OS X: Starting up with the 32-bit or 64-bit kernel