Tor Browser generates huge memory (RAM) usage when watching videos
Summary
Tor browser generates huge RAM usage. Noticed this issue, because since the newest update my system frozen because of total usage of available memory (RAM + swap = 64GB). After investigation it turned out that tor browser generates this, when watching YouTube videos. With each new video started in a tab it uses 5 - 12 GB on the top! to the already used memory, which is a totally different behaviour to previous versions of tor browser (because of other applications, sometimes, I keep an eye on memory usage ;). Just with closing the tab, the memory get free and available again.
Steps to reproduce:
- Starting YouTube in a browser tab, and watching memory (RAM and swap) usage. You will see a bunch of GB getting used.
- After finishing the video, start an additional video, within the same tab, and the memory will grow by an additional bunch of GB.
- When closing the tab, the memory will be free again.
Edit: I just noticed that not all videos raises the memory, or in some cases the raising memory not directly starts with starting the video, instead just after some minutes it suddendly raises the memory by several GB within a minute.
What is the current bug behavior?
Heavily growing memory usage.
What is the expected behavior?
Only slowly growing. In the past, I have never experienced a usage of more than 50% of my available memory of 64GB, even after I had tor browser and a lot of videos running for a lot of days or even weeks.
=> That's a very critical bug, since it can lead fastly to a freezing system for people with small memory.
Environment
Arch linux - Up to date. Tor browser dowloaded years ago from torproject website. This bug is related to the newest tor browser release from 14. July 2022: Tor Browser 11.5
Relevant logs and/or screenshots
Couldn't find any relevant information.