Last Comment Bug 857806 - Memory consumption increases to 2.4 GiB over a week (w/44 extensions enabled)
: Memory consumption increases to 2.4 GiB over a week (w/44 extensions enabled)
Status: RESOLVED WORKSFORME
[MemShrink:P3]
:
Product: Firefox
Classification: Client Software
Component: Untriaged (show other bugs)
: 19 Branch
: x86_64 Linux
: -- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
Mentors:
Depends on: 848560
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-03 15:06 PDT by Allan Gardner (:Mathnerd314)
Modified: 2014-04-29 20:51 PDT (History)
4 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
aboutmemory_censored (2.41 MB, text/plain)
2013-04-03 15:06 PDT, Allan Gardner (:Mathnerd314)
no flags Details
about:support (13.48 KB, text/plain)
2013-04-03 15:09 PDT, Allan Gardner (:Mathnerd314)
no flags Details
about:support JSON (14.96 KB, text/plain)
2013-04-03 15:10 PDT, Allan Gardner (:Mathnerd314)
no flags Details
about:crashes (2.91 KB, text/plain)
2013-04-03 15:20 PDT, Allan Gardner (:Mathnerd314)
no flags Details

Description Allan Gardner (:Mathnerd314) 2013-04-03 15:06:12 PDT
Created attachment 733053 [details]
aboutmemory_censored

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0
Build ID: 20130307122351

Steps to reproduce:

Opened some tabs, browsed normally, left it open for a week.


Actual results:

Memory increased to 2.4 GB or so.


Expected results:

Memory should have stayed constant at around .5-1 GB.
Comment 1 Allan Gardner (:Mathnerd314) 2013-04-03 15:09:31 PDT
Created attachment 733055 [details]
about:support
Comment 2 Andrew McCreight [:mccr8] 2013-04-03 15:10:13 PDT
At a glance, this part looks the most suspicious to me:

├────692,717,904 B (65.95%) -- layout
│    ├──489,972,528 B (46.65%) ── style-sets
│    ├──104,415,960 B (09.94%) ── frames

I'm not sure what "style sets" are, though.
Comment 3 Allan Gardner (:Mathnerd314) 2013-04-03 15:10:15 PDT
Created attachment 733056 [details]
about:support JSON
Comment 4 Allan Gardner (:Mathnerd314) 2013-04-03 15:20:19 PDT
Created attachment 733063 [details]
about:crashes
Comment 5 Nicholas Nethercote [:njn] (on vacation until July 11) 2013-04-03 17:09:36 PDT
Style sets are CSS stuff.

More suspicious is the fact that there are more than 30
http://www-ig-opensocial.googleusercontent.com/gadgets/ifr?exp_rpc_js=1... windows, each of which contains 3 compartments.  I wonder if there's a leak there.

This is also interesting:

2,183 (100.0%) -- js-compartments
├──1,109 (50.80%) ── system
└──1,074 (49.20%) ── user

That's a lot of system compartments.  Oh, but you have 44 extensions enabled!  That's a lot.  621 of the system compartments have "bootstrap.js" somewhere in the name, so extensions explain that, I think.

But really, we need an about:memory diff to make sense of the increase.  Roll on bug 848560...
Comment 6 Nicholas Nethercote [:njn] (on vacation until July 11) 2013-04-09 18:57:34 PDT
Bug 848560 has landed.  Thanks for waiting.

Can you update to the latest Nightly and use the "Write reports to a file" button at the bottom of about:memory to take measurements before and after?  Thanks!
Comment 7 Allan Gardner (:Mathnerd314) 2013-04-13 09:23:33 PDT
Now running the nightly, I'll upload some dumps if/when the memory usage spikes.
Comment 8 Allan Gardner (:Mathnerd314) 2014-04-29 20:51:16 PDT
The memory usage has been reasonable for quite a while... closing.

Note You need to log in before you can comment on or make changes to this bug.