-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Periodical memory usage spikes #304
Comments
Thanks for the report. I've actually never actively monitored the memory usage of TC since I'm not sure what could cause such an issue, because the only "expensive" thing happening in intervals is container cleanup, which checks for every TC if it still has tabs and removes the container if there aren't any tabs anymore. I've tested with 100 tabs but the container cleanup doesn't show any additional memory usage. I'll keep an eye on Two questions:
|
Monitored |
I have just checked about:performance but it does not report high memory usage by TC while the issue happens. I could see high CPU usage though: I think I have an explanation of this. Previously I noticed that manually invoking garbage collection ("GC" button in about:memory) makes the memory usage by WebExtensions process almost instantly go back to normal for a moment. (But then it continues to grow.)
Yes. Many more than 100. Also, on the screenshot in my first message it is possible to see that a big part of that memory is multiple copies of URL-encoded images (mostly icons). I would guess that those might be clones of tabs.Tab.favIconUrl field. |
Interesting. 13.5 MB memory is already unusually high - and I can see how GC might be the reason for Just to make sure: TC has the Internal UUID Would you mind providing a debug log for the time frame when the issue happens? |
And what's your average memory usage from TC without the issue? |
On fresh start was is 2.5 MB. I will try to collect more info. |
Did some refactoring regarding container cleanup in #305 and published as v1.4, it doesn't use browser APIs in intervals at all anymore. So hopefully that addresses the memory spike as well. Please let me know if it pops up again. |
I am facing this issue since a week or two. Firefox 116.0.3 (could have been in earlier versions as well) I rarely keep any tabs open and usually delete containers on my own as well once I'm done. Recently, I started noticing my memory usage going very high especially when I'm not using the browser. Once it got to 99% and my OS started killing other processes. As soon as I start using the browser or open and close a new tab, the usage resets to normal values. It was even difficult to take this screenshot as it immediately reset the high usage. settings - temporary_containers_preferences_2023-08-29_15.17.56.json.txt The screenshot was taken when 3-4 containers were present. However, no tabs except one about:preferences were open. |
Temporary Containers Version: 1.3
Firefox Version: 69.0
Operating System + Version: Ubuntu 19.04
Non-default Options/Preferences in Temporary Containers:
temporary_containers_preferences_2019-9-11_22.34.44.json.txt
Other installed Add-ons + Version:
Actual behavior
Occasionally, memory usage by WebExtensions process starts growing rapidly. It takes about 30 seconds to reach the peak at ~2 GB and then it quickly gets back to normal.
I managed to screenshot about:memory page at the peak usage. It looks like the memory is used by Temporary Containers addon.
Expected behavior
The addon should not consume unreasonably high amounts of memory.
Steps to reproduce
It does not seem that there is a user action that triggers it. I remember it happened once while the browser was not in focus at all.
The text was updated successfully, but these errors were encountered: