clients icon indicating copy to clipboard operation
clients copied to clipboard

Excess memory usage by Firefox extension

Open eugenioperea opened this issue 8 months ago • 8 comments

Steps To Reproduce

  1. Have the Firefox browser extension installed, on Ubuntu Linux.
  2. Type about:processes in the address bar; notice that extensions are using an inordinate amount of memory
  3. Type about:memory in the address bar, click the "Measure" button, click "extension"; identify the extension that is using the most memory. In my case, 230 MB
  4. Type about:debugging#/runtime/this-firefox to identify the extension; it's Bitwarden
  5. In comparison, the 2nd highest memory-using extension is at 27 MB

Expected Result

I expect the Bitwarden extension to use an amount of memory comparable to other extensions

Actual Result

The actual usage is nearly 900% higher than the second highest

Screenshots or Videos

Image

Additional Context

No response

Operating System

Linux

Operating System Version

Ubuntu 24.10

Web Browser

Firefox

Browser Version

137.0 canonical-002 - 1.0

Environment Versions

Version: 2025.2.0 SDK: 'main (28c7e29)' Server version: 2025.3.3

Issue Tracking Info

  • [x] I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

eugenioperea avatar Apr 05 '25 18:04 eugenioperea

Thank you for reporting this issue! We've added this to our internal tracking system. ID: PM-19916

S-Kakar avatar Apr 05 '25 18:04 S-Kakar

Same here, only 3 times the size, at 716 MB. The second largest is 69 MB.

Image

p-himik avatar May 28 '25 14:05 p-himik

Same here. There are also a number of other posts in closed #10222 that were added after it was closed.

Image

jpiesing avatar Jun 13 '25 18:06 jpiesing

Image

My other twelve extensions put together only take up a range of between 20 and 100MB.

4rft5 avatar Jun 18 '25 14:06 4rft5

Do we know if it's a memory leak? Does it only happen if we don't restart Firefox periodically?

eugenioperea avatar Jun 18 '25 17:06 eugenioperea

Do we know if it's a memory leak? Does it only happen if we don't restart Firefox periodically?

For me, on Ubuntu, it's relatively sudden. I can do about:memory a couple of times a day and the number doesn't go up much. Then suddenly the fan goes on, the laptop starts swapping & firefox is very slow. Either something else gets killed or firefox gets killed or the system is just responsive enough that I can get a command line and kill Firefox.

jpiesing avatar Jun 18 '25 18:06 jpiesing

Do we know if it's a memory leak? Does it only happen if we don't restart Firefox periodically?

My screenshot was from just launching Firefox, so for me it's basically instantaneous.

4rft5 avatar Jun 18 '25 18:06 4rft5

Hi, @S-Kakar. I know that you said that you had added this to your internal tracking system, but that was back in April, you've already closed another report, and we haven't heard anything from you guys. We would appreciate an acknowledgement that you're aware of our reports here.

eugenioperea avatar Jun 18 '25 23:06 eugenioperea

1,148.67 MB here. Does it use Electron or something? Disabled website icons to see how it goes.

reyaz006 avatar Jun 30 '25 12:06 reyaz006

Huge memory leak

this is 5 minutes after opening Firefox, eventually it hoards all the RAM and websites stops loading and you have to restart the browser

Image

nateRiver111 avatar Jul 13 '25 18:07 nateRiver111

some more information: for me, doing "Lock now" seems to release all the hogged memory, if about:processes is to be trusted

Osrepnay avatar Aug 04 '25 03:08 Osrepnay

some more information: for me, doing "Lock now" seems to release all the hogged memory, if about:processes is to be trusted

Thanks, it works for me. Memeory usage of Bitwarden Chrome extension service worker changed from 900MB to 170MB

ValueXu avatar Aug 22 '25 02:08 ValueXu