Memory leak in Vivaldi v5?
-
Am I the only one who thinks that Vivaldi is using way too much RAM and it has only gotten worse? When I open multiple sites from Yahoo Finance, but also other websites, my RAM gets drained real quik.
Let's say I open 10 sites from Yahoo Finance, I might go from 3GB to 1GB RAM, like it's nothing. And keep in mind, this is with Ublock Origin enabled, so all heavy advertising stuff is blocked. Is there anything that the Vivaldi team can do, or is it a case of Chromium being crappy?
-
@RasheedHolland What happens with a fresh profile (no settings/extensions, close tab immediately when Welcome page comes up)?
-
@RasheedHolland Well, it is a heavy site.
With uBlock active:
uBlock deactivated:
So it's not the site itself, but the number of subframes it uses that makes up a large amount of used memory. I've seen crappy sites with 20+ subframes each using 20-30MB, and things add up.
And obviously if you open 10+ tabs you'll see usage in the Gigs of memory used.
or is it a case of Chromium being crappy?
It's a case of modern browsers and web sites being memory hogs.
About the same numbers in FF:
Remember, it's not a Memory Leak unless memory is actually leaking - i.e. increasing constantly over time with no collection. If it just uses a lot of memory, it's not a leak - it just uses lots of memory
https://en.wikipedia.org/wiki/Memory_leak -
@Pathduck said in Memory leak in Vivaldi v5?:
@RasheedHolland Well, it is a heavy site.
Remember, it's not a Memory Leak unless memory is actually leaking - i.e. increasing constantly over time with no collection. If it just uses a lot of memory, it's not a leak - it just uses lots of memory
https://en.wikipedia.org/wiki/Memory_leakThanks for the feedback, but it really seems there is something wrong with Vivaldi's memory management, it happens with too many sites that RAM usage increases rapidly and then the Windows 10 memory compression tool needs to come into action to stop my PC from crashing. Perhaps it also depends a bit on how long Vivaldi stays active in memory, I sometimes keep Vivaldi open for days.
-
@RasheedHolland said in Memory leak in Vivaldi v5?:
I sometimes keep Vivaldi open for days.
Yeah - don't do that
If I am not using the browser, I close all tabs and exit.But if you can document this somehow, showing an increase in memory over time. Like making a screenshot of mem usage once every couple of hours or showing a graph of increasing memory usage. A great tool is Process Explorer:
https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorerThere's really no point in making guesses as to what might happen. I know some users have reported an increase in memory after OS comes back from Hibernation, so that might be a thing too. But I doubt in these cases it's specific to Vivaldi, memory management is AFAIK handled only in Chromium code. So same should happen in Chromium/Chrome as well.
I once wrote a simple script to log memory usage in a process over time to a CSV file that could be made into a graph. It requires Cygwin though...
#!/bin/bash Progname="SunsetScreen" while true do timestamp=$(date +%T) mem=$(pslist -nobanner $Progname | grep $Progname | cut -d " " -f 17,18) echo $timestamp,$mem sleep 10 done
-
@Pathduck said in Memory leak in Vivaldi v5?:
There's really no point in making guesses as to what might happen. I know some users have reported an increase in memory after OS comes back from Hibernation, so that might be a thing too. But I doubt in these cases it's specific to Vivaldi, memory management is AFAIK handled only in Chromium code. So same should happen in Chromium/Chrome as well.
Yes, perhaps it's a Chromium thing, not related specifically to Vivali, but to all Chromium based browsers. But I assumed that since Vivaldi's GUI runs on top, it might also play a role. I guess I should give Brave and Edge a try, but those browsers suck.
I keep Vivaldi active in memory because I load quite a lot of tabs and I don't always have the time to read articles and I hate it when Vivaldi needs to reload those websites again, that's why I almost never use tab hibernation.
-
@RasheedHolland When you get these "heavy usage" situations, please do a screenshot of memory use in Vivaldi's Task Manager as well as Process Explorer/Task Manager if possible (Private Bytes is interesting).
When making a screenshot in Windows Task Manager, it's important to expand the process list so individual PIDs are showing. Also make sure PIDs are actually shown, as they are not by default I think.
It might not even be the site itself (assuming Yahoo Finance) but maybe one of the (many!) subframes that's consuming memory.
For instance, here's ProcExp for the last 10 mins of Yahoo Finance:
But 10 mins is probably way too small interval to show anything meaningful.
Same process in Task Manager and Vivaldi:
-
Yeah vivaldi is a memory hog. Got it on an older PC with 12GB of ram, it generally only has 4-5 tabs open. It often starts complaining due to vivaldi hogging all the memory. And we're talking just a few hours of use. Some versions are better than others in that regard but I think it got a lot worse in this regard somewhere since version 4.
And on this PC with 32GB of ram it's currently using around half, most of it due to vivaldi processes. Sure I have a good number of tabs open but it's still a lot.
-
@endemion said in Memory leak in Vivaldi v5?:
Yeah vivaldi is a memory hog.
Compared to what? Opera 12? Mosaic?
-
@Pathduck Comapred to Lynx scnr
-
@DoctorG Lynx is a memory hog, just look at that Virtual Size!
-
Some of this suggestions may help despite of your specs.
https://forum.vivaldi.net/topic/60564/guide-vivaldi-on-old-computers
@RasheedHolland
Hibernate Tabs releases RAM.
In fact,
Chromium auto hibernates,
Are you using something to block that?--
"Off Topic Tip"
Follow the Signature's Backup | Reset link.
Take the opportunity to start a Backup plan and even create a Template Profile.
Windows 7 (x64)
Vivaldi Backup | Reset + Extra Steps -
@Pathduck I'm not familiar with those browsers (I once came from Pale Moon, that's to long ago to compare though). But if I randomly do a bunch of Save Page As commands. Lets make that 10 times actually it adds up to 54MB in the folder I saved them in.
I may have around 200 tabs open. Most just left open just in case and should be using that auto hibernate thing.
So (200/10) * 54 should come to around 1GB yet vivaldi is using 10.6GB at the moment of starting this message (I just ran a batch file closing all vivaldi processes and compared the before and after memory usage, in fact having restarted vivaldi memory usage is up 3GB compared to before so 13.6GB all vivaldi now).
@Zalex108 I'll check out that link later. Not that I use that old computer myself all that much.
-
@endemion said in Memory leak in Vivaldi v5?:
@Zalex108 I'll check out that link later. Not that I use that old computer myself all that much.
Yes,
It's just because there are 2 things that may help:A full hibernation extension
A command to combine in one thread the same elements in "duplicated" pages (Yahoo)If I recall saw something in
chrome://flags
for that too. -
@Tsvetkov1964 said in Memory leak in Vivaldi v5?:
@RasheedHolland The Edge and Yandex browsers (both based on Chromium) have learned to optimize memory very well.
I have seen that Edge has also tried to tackle this problem, see link. So surely Vivaldi must be able to do something about the high RAM usage.
https://blogs.windows.com/msedgedev/2022/12/06/sleeping-tabs-edge-105-sleep-before-discarding/
-
@endemion said in Memory leak in Vivaldi v5?:
Yeah vivaldi is a memory hog. Got it on an older PC with 12GB of ram, it generally only has 4-5 tabs open. It often starts complaining due to vivaldi hogging all the memory. And we're talking just a few hours of use. Some versions are better than others in that regard but I think it got a lot worse in this regard somewhere since version 4.
And on this PC with 32GB of ram it's currently using around half, most of it due to vivaldi processes. Sure I have a good number of tabs open but it's still a lot.
Wow, sounds pretty ridiculous that Vivaldi uses half of the 32GB of RAM, with how many tabs open?
-
@Zalex108 said in Memory leak in Vivaldi v5?:
Some of this suggestions may help despite of your specs.
https://forum.vivaldi.net/topic/60564/guide-vivaldi-on-old-computers
@RasheedHolland
Hibernate Tabs releases RAM.
In fact,
Chromium auto hibernates,
Are you using something to block that?No, I don't block anything, but I don't like to use tab hibernation, I hate it when tabs have to reload again.
-
@Pathduck said in Memory leak in Vivaldi v5?:
@RasheedHolland When you get these "heavy usage" situations, please do a screenshot of memory use in Vivaldi's Task Manager as well as Process Explorer/Task Manager if possible (Private Bytes is interesting).
When making a screenshot in Windows Task Manager, it's important to expand the process list so individual PIDs are showing. Also make sure PIDs are actually shown, as they are not by default I think. It might not even be the site itself (assuming Yahoo Finance) but maybe one of the (many!) subframes that's consuming memory.
I will see what I can do. But all I know is that when I open certain sites like finance.yahoo.com and www.ad.nl and I open let's say 20 articles (20 tabs), my RAM gets drained real quickly. I monitor this with the excellent TinyResMeter tool, see link.
And keep in mind, I'm also using uBlock Origin, so this adblocker is already blocking lots of advertisement crap.
So I hope Vivaldi can do something about this, even if Chromium is a resource hog. Of course with 16GB it's less of an issue for most people, unless you are also playing video games and using virtual machines while the browser is still in memory with 50+ active tabs, know what I mean?
-
Just depends on the Browsing habits
On the mentioned Extension you can whitelist sites.
Chromium hibernates every site. -
@Zalex108 said in Memory leak in Vivaldi v5?:
Just depends on the Browsing habits
On the mentioned Extension you can whitelist sites.
Chromium hibernates every site.Yes exactly and my browsing habit is that I navigate to certain sites, and then select articles that I want to read at a later time, and open them in background tabs. So before I know it, I might have 40+ tabs open.
But with 8GB, I will find myself constantly having to monitor RAM usage. Luckily the Windows Memory Compression tool often kicks in to stop my machine from crashing. To clarify, this is on my Win 10 laptop, it's less of an issue on my Win 8 desktop, since Win 8 is using way less RAM.