High memory usage #481
High memory usage #481
Comments
|
I'm getting the same problem except it's using over 2GB of memory and on MacOS. |
|
Wow.. mine is much lower (around 15 mb). I'm on Firefox though. Maybe a browser related issue? |
|
On my chrome it is using 1.5GB, visited only view sites. any updates on this issue? |
|
Can you let me know how much memory Ghostery is consuming in the Chrome Task Manager vs the Windows Task Manager? |
|
Just had the same issue. Chrome had it using 3 GB, showed up as ~1.2 GB in Windows task manager. Had less than 10 tabs open, none particularly resource intensive. Windows 10, Chrome 80.0.3987.162, Ghostery 8.4.8 |
|
@christophertino ghostery has 1.5GB under the Chrome-Task-Manager |
|
Can you try manual garbage collection and see if that brings the memory value down?
I've been generating heap snapshots and memory allocation profiles but haven't seen anything conclusive. I was able to see some memory escalation but it seemed to go away after I closed out the developer tools. This bug from the AdBlock team indicates there may be an issue with Chrome delaying garbage collection. They concluded that the browser may not trigger garbage collection until it runs out of memory (see here), but that the memory would be freed up eventually. If anyone is able to take some heap snapshots (before the memory increase and during), that would be helpful. From the same Memory tab as above, where it says 'Summary' change that to 'Comparison'. Then sort the columns by # Delta and Size Delta, looking for large positive values. See if you can drill down into any large values. |
|
@christophertino Started with 1.2GB memory footprint in the chrome task manager after 5h runtime JS Heap size was only 20MB and snapshot size too. In the chrome task manager the memory footprint is still at 1.2GB and JS memory 25MB (19MB live) The Chrome task group has in windows task manager 1.7GB memory |
|
Also seeing this issue lately. Details requested so far: After a few days use:
Ghostery is the top process by more than 100%. Next step down from there was a tab using about 376 MB (windows reported). Manual garbage collection only helped by a few MB. Restarting Chrome, Ghostery starts at about 70MB. I took a snapshot after restart; will take another to compare deltas after the problem resurfaces and report back. |
|
Here is some data from Chrome Task Manager and Activity Monitor. I also took a sample from Activity Monitor.
|
|
I am a casual user of Ghostery (but one with advanced degrees of CS) and I'm seeing extremely high memory usage. I wouldn't post here, except I saw that the issue was already open. When I enable Ghostery, the virtual memory used by Firefox's WebExtensions process jumps above 14gb. When I disable Ghostery, it drops below 1gb. I found the issue because I was getting lag and Firefox's Memory Report says I'm seeing a lot of "soft page swaps". I shouldn't see any page swaps --- my machine has 16gb of RAM and I wasn't even doing anything large on it. I'm shocked how fast virtual memory size jumps up when enabling Ghostery. Are you mem-mapping a file or using a sparse memory map somewhere? A memory leak should take time to get to that amount. It's very odd. I noticed the lag on my system about 2 to 3 weeks ago. Tech details are:
Reply to this message if you need me to do anything to help. |
|
@mdnahas If you're able to run some performance diagnostics it would be helpful. Unfortunately, FF doesn't allow memory snapshots for extensions the same way that Chrome does. But you can create a performance allocation profile that may be able to show some abnormal memory allocations taking place.
There's some additional info from MDN on recording allocations here. I've been chasing this bug for several months without any luck and would be happy to have some extra help tracking this down. |
|
Ghostery support ("Sloane") contacted me. They had me update my version of Ghostery and other add-ons, etc. After doing that, I did some more investigation. Both Ghostery and HTTPS Everywhere are both allocating about 6.3GB of virtual memory when enabled. (As measured by the WebExtensions process in the "top" program.) The other extensions that I use don't do that. (Those extensions are Disconnect and Leech Block NG.) I've learned more about using "top" and can now see the number of page faults in it. If I encounter the lag again, I'll confirm that it is the WebExtensions process that is faulting and causing the problem. So far, I've assumed it was Ghostery in Firefox because of the absurdly high amount of virtual memory. But it seems that is both Ghostery and HTTPS Everywhere extension. Because you asked, I did a recording while I typed for a minute in GMail. Hopefully, it helps. (I changed the suffix from .json to .txt, so you'll have to change it back.) |
|
Thanks for that profile. I was seeing something similar on my end around
And then let's try turning off Pacemaker:
This may break some things in Ghostery but I'm curious to see if the memory leak is still present. |
|
CLIQZ.services.pacemaker.api At the moment, I'm not sure there is a memory leak. It takes up 6GB of RAM right away when enabled. A leak takes time. I'm hesitant to "break things" when I'm not sure what I'm turning off and don't know how to turn it on and don't know what the lasting effects are. |
|
Pacemaker is just used to schedule timeouts. It will restart when you restart the browser. But I understand if you are hesitant to turn it off. Here's an open Bugzilla ticket that seems to be related: Very high virtual memory usage in the WebExtensions process on Linux |
|
That bug report seems to be exactly what I'm seeing in "top". The lag has reappeared. I'm not sure what's causing it. It is not (immediately) connected to the virtual memory issue. I was able to look at memory faults in "top". 5 processes were experiencing millions of "minor page faults", which happen when the data is already in physical memory but not mapped in the process's memory. E.g., when a process makes a call to a library function that was previously called by another process. The most faulted process wasn't even "WebExtensions". I'm seeing CPU bursts when I encounter the lag. I'll try to track it down, but it doesn't seem to be connected to this issue. |
|
I can also reproduce the same bug with 1GB+ memory usage on the current latest build of Chrome (85) on Windows 10. |
|
This is still an active issue that has been observed for years, ghostery has been called out as having a memory leak issue in that it can slowly creep to using nearly all of a system's memory despite nothing being used in chrome or firefox. You can have a single blank tab for the browser and watch it's usage climb higher and higher for no discernable nor logical reason. |
|
The extension crashed on my laptop after it reached a memory usage of 5GB. I've restarted it and it's now using 65MB. |

Description
Ghostery is using a lot of RAM.
Expected Behavior
Ghostery should have a reasonable usage. I can accept 100 MB maximum 150 MB.
Actual Behavior
In my case it is using about 450 MB and the best value was 326 MB.
Steps to Reproduce
I will disable Ghostery for a while. My machine is only 4 GB of RAM and more than 10% is too much. Usage of CPU is also an issue.
The text was updated successfully, but these errors were encountered: