Closed Bug 1729281 Opened 4 years ago Closed 4 years ago

firefox not release memory when refresh

Categories

(Core :: JavaScript: GC, defect, P3)

Firefox 93
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: mix5003, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [QA-not-reproducible])

Attachments

(2 files)

6.89 MB, application/x-gzip
Details
109.91 KB, application/x-gzip
Details
Attached file memory-report.json.gz

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0

Steps to reproduce:

i used firefox to open facebook.com for a long time.
i found that facebook tab used ram too much. so i refresh that tab and hope that firefox will release memory back.
video: https://youtu.be/sJwc67vNZNQ
i try all button in free memory section in about:memory but nothing works.
only way that i can free that memory is to close facebook tab and click "Minimize memory usage" in about:memory (i am not sure is regular GC can free memory after i close tab or not i will try next time)

Actual results:

when i refresh. firefox not release/clear memory that facebook tab hold.

Expected results:

firefox should release memory when i refresh that tab

Hey mix5003,
I tried reproducing this issue on the latest versions of Firefox Nightly 94.0a1 (2021-09-06), beta 93.0b1 and release 91.0.2 but I don't reproduce this issue. Does it still occur even if you restart firefox? I do see you have a lot of tabs and if they're streaming for example the memory will only go higher.

Can you test the issue while in Safe Mode? You can find helpful info here : https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode .
Also a fresh new profile could help. You can find more about creating a new profile here : https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems#w_6-create-a-new-firefox-profile .
If possible, you can test this issue on the nightly build as well. Download the build from : https://www.mozilla.org/en-US/firefox/nightly/all/ .

Flags: needinfo?(mix5003)
Whiteboard: [QA-not-reproducible]
Attached file after.json.gz

i try in fresh new profile but it still happen.

and i think i found the way to reproduce it.
this video show you how to do it https://youtu.be/GCKIj3N5oeg
this is the step that i do

  1. login to facebook.com
  2. open https://www.facebook.com/TukTikKartun (if you goto about:memory and click measure now it used around 100MB)
  3. scroll down until 1st June or older (actually i just press "page down")
  4. refresh this tab
  5. goto about:memory and click GC, CC , Minimize memory usage and then measure it again. you can see that i just refresh but facebook tab still has around 512MB of class(Object)/objects

if you repeat step 3 to 5 again it will use more and more memory

Flags: needinfo?(mix5003)
Component: Untriaged → JavaScript: GC
Product: Firefox → Core

Changing severity to S3 because mostly the sites tend to keep working.

Blocks: sm-leaks
Severity: -- → S3
Priority: -- → P3

i think it most likely fixed by Bug1717553

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: