Skip to content
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

[Bug]: leaving tab open to main feed in Firefox can cause high RAM/CPU usage #1385

Closed
3 of 4 tasks
maxwood-forester opened this issue Jun 19, 2023 · 9 comments
Closed
3 of 4 tasks
Labels
bug Something isn't working

Comments

@maxwood-forester
Copy link

maxwood-forester commented Jun 19, 2023

Requirements

  • Is this a bug report? For questions or discussions use https://lemmy.ml/c/lemmy_support
  • Did you check to see if this issue already exists?
  • Is this only a single bug? Do not put multiple bugs in one issue.
  • Is this a server side (not related to the UI) issue? Use the Lemmy back end repo.

Summary

Sometimes, when leaving a tab open in Firefox with a Lemmy instance loaded at the main feed (equivalent to r/all), after several hours, very high RAM and CPU usage can result.

Steps to Reproduce

  1. leave a tab open to the main / combined feed in Firefox
  2. wait several hours

Technical Details

Behavior seen on Firefox 102.11 ESR and 114 on Debian and Mint flavors of Linux, respectively.

I will look at the console next time it happens.

Version

0.17.4

Lemmy Instance URL

No response

@maxwood-forester maxwood-forester added the bug Something isn't working label Jun 19, 2023
@s3rvant
Copy link

s3rvant commented Jun 21, 2023

Confirmed however only took 3 minutes for the tab to crash:

Ubuntu 23.04
Firefox 114.0.1
i9-13900H
32gb RAM

Watched about:processes and observed 100% CPU entire duration and steady climb of RAM usage up until tab crashed. At that time RAM usage for the tab was at 16gb. Specifically tested on beehaw.org.

@Banzai51
Copy link

Can confirm.
Windows 10
Firefox 114.0.1
CPU: 5800x3D
RAM: 64GB

Will slowly chew up RAM, notice it as I use Lemmy, especially forwarding/back on page, or changing my viewing from the defaults (subscribed-Hot) to something like Local - New. If I close the Lemmy tab it goes away.

@ozoned
Copy link

ozoned commented Jun 21, 2023

Also seeing this with Firefox 114.0.1 on Fedora 38. I downgraded to 111.0.1-1.fc38 and it seemed like it was stopped, but it did slowly grow. With 114.0.1 it definitely happens in minutes and halts my system due to swapping so much.

It's with the Isolated Web Container process of Firefox. This does not happen with Chromium. So I'm wondering if this is a bug in Firefox that is just exacerbated by Lemmy.

@ghost
Copy link

ghost commented Jun 21, 2023

This may be fixed in the Firefox code already. I've been running a lemmy tab in Firefox Nightly (116.0a1) for a few hours now, and both the total memory & the Isolated Web Container memory seem to be stable.

@ozoned
Copy link

ozoned commented Jun 22, 2023

I installed the beta version, 115.0b8, and it's fine and doesn't experience this issue. I think this is a memory leak issue with the Isolated Web Container code in Firefox.

@s3rvant
Copy link

s3rvant commented Jun 22, 2023

Firefox version 114.0.2 is available now and after updating the issue is gone.

@Banzai51
Copy link

The instance I'm on upgraded the UI to 0.18.0-rc.4, and I haven't seen the issue since. This morning I noticed Firefox was now 114.0.2 as well.

@ozoned
Copy link

ozoned commented Jun 22, 2023

Just upgraded to 114.0.2 and issue is resolved here as well. Seems like a memleak in Firefox that's been resolved quickly.

@alectrocute
Copy link
Contributor

Thanks for monitoring this one, everyone. Looks like we can close this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants