Closed Bug 1662101 Opened 4 years ago Closed 4 years ago

OOM while idle for two hours

Categories

(Core :: Performance, defect)

80 Branch
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: least220616, Unassigned)

Details

Attachments

(10 files)

User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0

Steps to reproduce:

Nothing special.
I had 73 tabs opened.
This time I left the laptop idle for almost two hours.
The RAM usage increased steadily from roughly 8GB to 14GB.
This happened at least two other times in the past few months.
Once I am sure I was using the laptop, without any other software that uses much RAM nor CPU nor storage nor network.
I think that another time it was idle.
Hybernation and suspend were always disabled.
Every time it happened, I checked the RAM usage and it always increased steadily.
I don't know if it was a coincidence, but when I left the about:performance page open, there was no steady increase.

Firefox is the latest one from the Fedora repositories:
firefox.x86_64
80.0-1.fc32
@updates

The machine is a Dell Latitude 7490 laptop, with 16GB of RAM, SSD 512GB.

The operating system is updated every day and it is:
lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: Fedora
Description: Fedora release 32 (Thirty Two)
Release: 32
Codename: ThirtyTwo

Actual results:

The OOM killer killed the MainThread process.
Firefox was closed.

Expected results:

Firefox should have released the RAM, or not have used it in the first place.

This is the first bug that I file here, so I might doing it wrong.
Please let me know if I can do something else.
Thank you very much for your great work :)

Hey Firefoss, I see you have 73 tabs open this is very unusual or closer to not a normal user behaviour and it can increase the ram usage especially if there are streaming services open or any other sites that send continous information towards the browser.

Andrew can you take a look over this? Did you encounter this issue before?

Setting a component for this issue in order to get the dev team involved.
If you feel it's an incorrect one please feel free to change it to a more appropriate one.

Component: Untriaged → Memory Allocator
Flags: needinfo?(continuation)
Product: Firefox → Core

Hi Andrei,
I was not playing videos.
The laptop was not being used at all.
Since many years I am used to have many tabs open, and the first time that this happened was a few months ago.
Then it happened again two times.
It happened while working for an IT company.
Therefore there were no games sites, or anything special that I could see.
I am attaching the screenshot which shows my addons.
If a picture is a problem, then I will write them in plain text.

Attached image addons.png

installed addons

It happened also yesterday actually.
I will now attach the snippet from /var/log/messages of yesterday, 2020-09-04,
plus the log from sar from yesterday, 2020-09-04,
plus the log from sar of the day when I opened this ticket, 2020-08-31.

Attached file 20200831_oom_sar.txt
Attached file 20200904_oom_sar.txt

Comment on attachment 9174041 [details]
20200904_oom_ksysguard.png

ksysguard

It happened right now.
The laptop was not being used.
I will now attach the three reports: messages, sar, ksysguard.

2020-09-05 ksysguard

Attached file 2020-09-05 sar

I made a test, by leaving the laptop on for seven hours without using it, with Firefox open, with a single tab, google.com.
The RAM usage did not increase at all over time.

My wild guess is that the problem be related to:
https://outlook.office365.com/

I say this because it is the only tab that always shows a red dot every now and then, like if it was updated, even if I did not receive emails.
It is also a website that I never used before having this problem.

I made a test, by leaving the laptop on for seven hours without using it, with Firefox open, with a single tab, google.com.
The RAM usage did not increase at all over time.

My wild guess is that the problem be related to:
https://outlook.office365.com/

I say this because it is the only tab that always shows a red dot every now and then, like if it was updated, even if I did not receive emails.
It is also a website that I never used before having this problem.

If I can, tonight I will leave the laptop on, with only that tab open.
I could not find a way to know its RAM usage by looking at about:performance or top, because the RAM is used by MainThread.

I left the laptop on for eight hours, with only Firefox and Ksysguard running.
The only open tab was https://outlook.office365.com/

The OOM did not happen.
I am attaching the screenshot about Ksysguard.

I will now close this ticket.
The problem happens almost every time that I leave the laptop idle.
Sometimes it kills a qemu virtual machine.
Sometimes Firefox.
Sometimes Microsoft Teams.
I gathered all the logs every day, but I won't post them here.
I don't want to add more work than you already have.

In short, the RAM is mostly used by Firefox.
Specifically, sometimes by the MainThread process, and sometimes by the Webextensions process.
I see that there are other bugs similar to this one.
For example:
https://bugzilla.redhat.com/show_bug.cgi?id=1726385

Keep up the amazing work on Firefox.
Have a nice day :)

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID

The best way to get a log for memory usage is to go to about:memory and do "Measure and save". Click on anonymize if you don't want the log to include the URLs of web pages you have open.

The bug is already closed, but Memory Allocator is not a good component for generic memory issues. Core::Performance might be better.

Component: Memory Allocator → Performance
Flags: needinfo?(continuation)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: