我喜欢使用谷歌浏览器(Google Chrome)浏览互联网(Internet),主要原因之一一直是因为它超级快!我从不喜欢带有所有附加组件的Firefox臃肿,而(Firefox)Internet Explorer实在是太慢了。
Microsoft Edge比 IE 快很多,但我使用了很多其他Google服务,Chrome一直在拉我回来。Firefox 的新Quantum 浏览器(Quantum browser)比Chrome还要快,我真的一直在考虑切换。
当我第一次开始使用Chrome时,我对简洁干净的界面和令人难以置信的(Chrome)浏览速度(browsing speed)感到高兴。然而,在一台速度非常快的 PC 上大量使用Chrome(Chrome)几个月后,我注意到在加载网页之前选项卡会出现几秒钟的空白,并且会出现其他普遍的缓慢情况。
Chrome 任务管理器
在做了一些探索之后,我决定看一下任务管理器,看看(task manager)Chrome正在运行哪些进程。这是我发现的:
圣牛(Holy cow)!这是一个惊人的 35 个谷歌浏览器(Google Chrome)进程!这是很多进程加上超过 5 GB 的内存使用量(memory usage)。这些Chrome进程是什么?当然,当我截取上面的屏幕截图时,我打开了 16 个标签,但所有网页都是静态的,没有视频播放或动画(playing or animations)。那么为什么要 35 个进程和GB(GBs)的内存呢?
您可以通过右键单击标题栏(title bar)(而不是选项卡)并选择任务管理器来了解(Task manager)Chrome中每个进程背后的内容。
在这里,您将看到在Google Chrome(Google Chrome)中运行的每个进程(称为任务)。我很快就被眼前的景象惊呆了。
浏览器是一个进程,每个选项卡都是它自己的进程,然后是 Web 应用程序、GPU以及我启用的每个扩展程序和插件的进程!(extension and plug-in)哎呀!根据我从Google在线阅读的内容,他们将所有内容分成不同的进程,因为它使浏览器更加稳定。例如,如果Flash 插件(Flash plugin)崩溃,它不会删除所有标签或整个浏览器。
使用谷歌浏览器(Google Chrome)这么久,我意识到这是非常正确的。很多时候,一个选项卡死了,我可以关闭选项卡并继续正常使用其他选项卡,否则Shockwave会挂起,我杀死了一个选项卡,其他一切(tab and everything)正常。
所以我的下一个想法是,如果让所有单独的进程使用额外的内存而不是之前的内存。从我在网上收集的信息来看,似乎即使进程减少了,插件和扩展仍然会占用内存,可能会稍微少一些。创建一个新进程有一点点开销,但它是次要的。
您可能还注意到一些列为子框架的项目:(subframe:) https://accounts.google.com。起初,我认为这与打开Gmail的标签有关,但后来了解到这完全是另外一回事。基本上(Basically),谷歌(Google)将一些进程放入自己的进程中,以便正确隔离它们。因此,有几个网站位于这些子框架内,而不是列出自己单独的选项卡进程。(tab process)
那么有什么办法可以减少Chrome使用的内存量吗?对我来说,当我为所有网站禁用 Flash 而不是将其保留在“首先询问我(Ask me first)”设置时,我注意到了一个很大的不同。要完全禁用 Flash,请转到设置(Settings),然后单击底部的高级,然后单击(Advanced)隐私和安全( Privacy and Security)下的内容设置( Content Settings)。单击Flash,然后确保它显示Block sites from running Flash。
这为我节省了超过 1 GB 的内存使用量(memory usage)。我不知道,但有几个网站在使用Flash。即使禁用了Flash,网站也运行良好,所以我一直禁用Flash。减少内存的另一种方法是删除一些扩展,尤其是在您不使用它们的情况下。此外,如果您偶尔需要它并且不想完全删除它,您可以简单地禁用它。
禁用扩展将防止它耗尽内存。最后,您可能已经注意到Chrome中的(Chrome)GPU 进程(GPU process),它应该默认启用。如果您的硬件支持,Chrome会将一些任务卸载到您的GPU上,这比您的CPU更快、更高效。这称为硬件加速(Hardware Acceleration)。如果需要,您可以通过转到Settings然后一直滚动到底部到System来禁用它。
如果您确实禁用了硬件加速(hardware acceleration),您在Chrome中的体验会有点慢,所以请记住这一点。
因此,如果您觉得Chrome占用了太多内存(RAM),请检查任务管理器(Task Manager)并尝试禁用使用过多内存的扩展程序。对我来说,我有一个我喜欢的扩展,但自 2013 年以来就没有更新过,这就是为什么它可能会使用这么多内存的原因。如果您不需要占用资源的扩展程序,请将其禁用,您将获得更好的浏览体验(browsing experience)。此外,除非你真的需要它,否则禁用Flash 。享受!
Google Chrome Memory Usage/Memory Leak Issues?
I love using Google Chrome for browsing the Internet and one of the main reasons has always been because it’s ѕuper fast! I neνer liked the bloat of Firefox with all the add-ons and Internet Explorer is just plain slow.
Microsoft Edge is quite a bit faster than IE, but I use so many other Google services that Chrome keeps pulling me back. Firefox’s new Quantum browser is even faster than Chrome and I really have been thinking about switching.
When I first started using Chrome, I was delighted with the simple clean interface and the incredible browsing speed. However, after a few months of using Chrome heavily on a very fast PC, I noticed tabs would be blank for a few seconds before loading a webpage and other general slowness.
Chrome Task Manager
After doing a little poking around, I decided to take a look at the task manager and see what processes were running for Chrome. Here’s what I found:
Holy cow! That’s a whopping 35 Google Chrome processes! That’s a lot of processes plus over 5 GB in memory usage. What are all those Chrome processes? Granted, I had 16 tabs open when I took the screenshot above, but all the webpages were static without videos playing or animations. So why 35 processes and GBs of memory?
You can find out what is behind each of those processes in Chrome by right-clicking on the title bar (not on a tab) and selecting Task manager.
Here you will see each process (called a Task) running in Google Chrome. I was quickly surprised by what I saw.
The browser is one process, each tab is its own process and then there were processes web apps, the GPU and for each extension and plug-in that I had enabled! Eeeks! From what I read online from Google, they separate everything out into different processes because it makes the browser more stable. For example, if the Flash plugin crashes, it won’t take down all your tabs or the entire browser.
Using Google Chrome for so long, I realized that this is very true. There were many times when one tab dies and I can just close the tab and keep using my other tabs normally or Shockwave would just hang and I killed that one tab and everything else worked fine.
So my next thought was if having all the separate processes used additional memory as opposed to how it was earlier. From what I have gathered online, it seems that even if there were fewer processes, the plugins and extensions would still use up memory, maybe just slightly less. There is a slight overhead to creating a new process, but it’s minor.
You may have also noticed several items listed as subframe: https://accounts.google.com. At first, I thought this was something to do with having a tab open to Gmail, but learned it is something else completely. Basically, Google puts some processes into its own process in order to properly isolate them. So there were several websites that were inside of these subframes instead of having their own separate tab process listed.
So is there anything you can do to reduce the amount of memory Chrome uses? For me, I noticed a big difference when I disabled flash for all sites rather than leaving it on the Ask me first setting. To disable flash completely, go to Settings, then click on Advanced at the bottom and then click on Content Settings under Privacy and Security. Click on Flash and then make sure it says Block sites from running Flash.
That saved me over 1 GB in memory usage. I didn’t know, but several websites were using Flash. Even with Flash disabled, the websites worked fine, so I kept Flash disabled. The other way to reduce memory is to remove some extensions, especially if you are not using them. Also, you can simply disable an extension if you need it occasionally and don’t want to remove it completely.
Disabling the extension will prevent it from using up memory. Lastly, you may have noticed a GPU process in Chrome, which should be enabled by default. If your hardware supports it, Chrome will offload some tasks to your GPU, which is faster and more efficient than your CPU. This is called Hardware Acceleration. If you want, you can disable it by going to Settings and then scrolling all the way to the bottom to System.
If you do disable hardware acceleration, your experience in Chrome will be a bit slower, so keep that in mind.
So if you feel Chrome is taking up too much RAM, check in Task Manager and try to disable the extension that is using an excessive amount of memory. For me, I had an extension that I liked, but hadn’t been updated since 2013, which is why it could have been using so much memory. If you don’t need a resource-hogging extension, disable it and you’ll have a better browsing experience. Also, disable Flash unless you really need it. Enjoy!