How To Limit Google Chrome Memory Usage And Free Up RAM

Reducing Memory and CPU Usage in Chrome is Now Easy

We hope using these tricks has reduced memory usage of Google Chrome on your computer. However, it’s best to switch to better alternatives if you have a low-end PC. Browsers like Edge use fewer resources compared to Google Chrome, and they come with Windows PCs by default.

Try to reduce your tabs as much as possible to make Chrome use as little memory and CPU resources. If you have any further questions or feedback, you can leave them in the comments below.

Video

4. Enable Hardware Acceleration

Enabling Hardware Acceleration helps Chrome with any graphics-intensive tasks such as playing games or video. Once enabled, Chrome will assign these demanding tasks to your GPU instead of the CPU, which, in turn, will help reduce the load on your PC.

To enable Hardware Acceleration, click on the three-dot menu to open Settings. Now scroll down to go to Advanced settings. Under System, find and toggle on the ‘Use hardware acceleration when available’ option.

Restart Chrome for changes to take effect and see

Restart Chrome for changes to take effect and see if Chrome’s memory usage is reduced.

# Discover detached DOM tree memory leaks with Heap Snapshots

A DOM node can only be garbage collected when there are no references to it from either the page’s DOM tree or JavaScript code. A node is said to be “detached” when it’s removed from the DOM tree but some JavaScript still references it. Detached DOM nodes are a common cause of memory leaks. This section teaches you how to use DevTools’ heap profilers to identify detached nodes.

Here’s a simple example of detached DOM nodes.

Clicking the button referenced in the code creates a ul node with ten li children. These nodes are referenced by the code but do not exist in the DOM tree, so they’re detached.

Heap snapshots are one way to identify detached nodes. As the name implies, heap snapshots show you how memory is distributed among your page’s JS objects and DOM nodes at the point of time of the snapshot.

To create a snapshot, open DevTools and go to the Profiles panel, select the Take Heap Snapshot radio button, and then press the Take Snapshot button.

The snapshot may take some time to process and loa

The snapshot may take some time to process and load. Once it’s finished, select it from the lefthand panel (named HEAP SNAPSHOTS).

Type Detached in the Class filter textbox to search for detached DOM trees.

Expand the carats to investigate a detached tree.

Expand the carats to investigate a detached tree.

Nodes highlighted yellow have direct references to

Nodes highlighted yellow have direct references to them from the JavaScript code. Nodes highlighted red do not have direct references. They are only alive because they are part of the yellow node’s tree. In general, you want to focus on the yellow nodes. Fix your code so that the yellow node isn’t alive for longer than it needs to be, and you also get rid of the red nodes that are part of the yellow node’s tree.

Click on a yellow node to investigate it further. In the Objects pane you can see more information about the code that’s referencing it. For example, in the screenshot below you can see that the detachedTree variable is referencing the node. To fix this particular memory leak, you would study the code that uses detachedTree and ensure that it removes its reference to the node when it’s no longer needed.

# Investigate memory allocation by function

Use the Record Allocation Profiler type to view memory allocation by JavaScript function.

Select the Record Allocation Profiler radio button
  1. Select the Record Allocation Profiler radio button. If there is a worker on the page, you can select that as the profiling target using the dropdown menu next to the Start button.
  2. Press the Start button.
  3. Perform the actions on the page which you want to investigate.
  4. Press the Stop button when you have finished all of your actions.

DevTools shows you a breakdown of memory allocation by function. The default view is Heavy (Bottom Up), which displays the functions that allocated the most memory at the top.

Why Chrome uses all the RAM?

You might be thinking about why chrome uses most of the ram and what’s the reason behind it. As we discussed before, computers need storage to do everything. If you want to download a movie, game, app, etc., RAM is required to store their data. Watching YouTube videos or downloading requires storage as well.

On the other hand, you might sometimes do other works on chrome, like searching for different stuff. You tend to open a lot of tabs at the same time. After searching and clicking your preferred website, it will take you to another tab. By opening a lot of tabs, RAM does its work and stores your information.

Chrome opens all the tabs that you clicked and split and duplicate it depending on how you prefer it that is why it uses most of the RAM.

Closure of Different Processes

It is so simple. Simply click on the task manager, and check the list which app takes a lot of RAM and memory. Click on that tab and end it if it is working. Doing this will free up the memory usage and make our computer process faster.

How To make Google Chrome Consume Less RAM?

Now that we have brief know-how of how Chrome handles memory, let us try and figure out the possible ways in which we can minimize the usage.

1. Google Chrome Task Manager

The most important tool you need to get yourself familiar with is the Chrome Task Manager.

This is very similar to the normal Windows Task Manager and can be accessed by the Shift + Esc shortcut.

Related: How To Stop Your Computer From Crashing?

Watch out for tabs and extensions that have Ballooned In Size. Sometimes, a single Chrome tab can use lots of memory due to a bug or poor configuration. Sometimes, a Chrome Memory Leak will cause your browser to freeze (or even your whole system).

Once you’ve killed off the Resource-Heavy Processes, there are some other things you can do to fix frequent Chrome crashes.

2. Managing Chrome’s Plugins And Extensions To Save RAM

You can turn off or uninstall extensions that are consuming a lot of resources.

Access the Chrome menu, go to More Tools and then select Extensions. Right-click any extension you want to disable or uninstall and select the desired action.

If you don’t want to Uninstall A Certain Extension you can simply reserve it for certain web pages and block it on others.

3. Chrome Tab Management Extensions Can Help Save RAM

This solution sounds funny since this involves us Suggesting The Installation of more extensions whilst we are explaining how removing them can better the overall experience.

Some extensions are designed specifically with RAM Management in mind and those are the ones we are suggesting here. These extensions help you customize how Chrome handles and discards tabs you are no longer using.

The Great Suspender is a great example. This free extension allows you to kill processes on all but one tab, instantly reducing how much memory Chrome is consuming.

It comes with a Variety Of Other Options, too, including the handy Unsuspend all tabs button for when you want to activate everything again.

Another amazing option is The Great Discarder, which allows you to customize the frequency Chrome discards unused tabs. Chrome discards tabs when they’re not in use to save memory.

With The Great Discarder, you can change the length of time, specify tabs not to discard, and so on.

Tips to save RAM when using Chrome

The first of the tips, and at the end is the most effective, is to be careful with the pages that we have open at all times. It is very comfortable to navigate with tabs, but this can make us, without realizing it, accumulating dozens of open websites, websites that we surely do not need. But there they are. Therefore, the first advice to reduce the use of RAM is to close all the tabs that we do not need , leaving only the ones that we are working with. Thus, in addition to better ordering the browser, we can free up a significant amount of RAM.

Another important tip when it comes to saving memory in Chrome is to use few extensions . As we have already said, extensions are very useful, but also dangerous for performance. The fewer extensions we have, the better. We should also install only trusted extensions, with many positive scores. If not, we may end up installing a malicious extension that is being used by our hardware to carry out its own tasks (such as mining cryptocurrencies), which consumes the use of resources.

It can also help us reduce RAM usage by scanning our PC for malware. Beyond looking for viruses on the PC, we can use an anti-malware, such as AdwCleaner, to detect any possible malicious software that may be interfering with the correct operation of the PC. And, in addition, it will also allow us to reset the proxy settings, winsock, TCP / IP, firewall and the Hosts file.

Of course, we must make sure that we are always us

Of course, we must make sure that we are always using the latest version of Google Chrome . Each update, in addition to correcting errors and vulnerabilities, usually brings optimizations and improvements, so having the browser up to date will help us consume less.

Finally, if Google Chrome continues to consume a lot of RAM, then we can try two more options. The first of them is to create a new user within the browser that allows us to start from scratch, and the second is to completely uninstall Chrome and reinstall the latest version. Or, incidentally, try a new web browser, such as Edge or Firefox.

Configure Chrome to use less RAM

In addition to the tips above, there are some settings that allow us to make the browser consume much less memory while using it, even without having to install other extensions.

Hardware acceleration

The first of these settings is to enable hardware acceleration . This feature allows you to delegate certain tasks to the computer’s GPU instead of loading them onto the CPU. By doing so, in addition to running much faster, Chrome will consume less RAM by not having to load the information into it in order to send it to the CPU.

To activate this feature, we write the following in the address bar and activate the switch that appears highlighted.

chrome://settings/?search=aceleracion+por+hardware

We can check the status of this acceleration by typing “chrome: // gpu /” in the address bar. The entries that appear as “Hardware accelerated” will be the ones that are using this hardware acceleration and, therefore, less CPU and RAM will be used when navigating with them.

Site Isolation

Another function that makes the browser consume a lot of RAM memory is Site Isolation . This function allows us to isolate the websites we visit so that they cannot access the resources of the PC. It is a browser security measure, which is activated by default, but that makes each web we load consume more memory.

We can disable it (although we do not recommend it) from the advanced browser settings. We simply have to access the URL that we leave you below, and mark the “Disable site isolation” option as “Enabled”.

chrome://flags/#site-isolation-trial-opt-out

We restart the browser and this feature will already be disabled. Although we will be giving up a good security measure.

Clear cookies and cache

Another recommendation that can make our browser work faster and in a more optimized way is to periodically erase cookies, cache and temporary files from it. By deleting this data, all the information that has been generated while using the browser will be erased and, in addition to freeing up space on the hard disk, we will make Chrome consume less RAM.

To do this, we must write the following in the browser’s address bar, and enter the “Clear browsing data” section:

chrome://settings/?search=borrar+datos+de+navegacion

Here we will see two sections. The first of them, basic, allows us to delete the most common temporary files of the browser, that is, the history, cookies and cache. The second of them, the advanced configuration, allows us to choose much better the data that we want to delete. And we can even leave the browser as new.

We select all the elements that we want to delete

We select all the elements that we want to delete from the browser, and then we will choose in the “time interval” how long we want to delete them. It is best to choose “Always” to delete all the data that has been generated in it.

We click on ” Delete data ” and that’s it. Chrome will automatically erase all this data from the browser and, from that moment, we will be able to start browsing the Internet better.

Tags

Leave a Reply

Your email address will not be published.