Closed Bug 1163152 Opened 9 years ago Closed 8 years ago

Firefox takes up all CPU usage when multiple windows open (especially google docs)

Categories

(Firefox :: General, defect)

37 Branch
Unspecified
macOS
defect
Not set
major

Tracking

()

RESOLVED FIXED
Tracking Status
platform-rel --- +

People

(Reporter: rjensen, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: perf, Whiteboard: [platform-rel-Google][platform-rel-GoogleSuite][platform-rel-GoogleDocs])

Attachments

(3 files)

I'm having ongoing problems with using google docs in firefox with high CPU load that means sometimes I have to wait to even scroll. 

Happens everytime I use Firefox, with 2-3 windows open, each with about 10-15 tabs. Especially if the tabs are google docs. 

CPU usage goes up to over 100% and I have to wait to use it. 

It should just work, so that I can keep working. Works fine in chrome.


I'm on a Macbook air, 10.10.2 Firefox version 37
Attached image Screen Shot 2015-05-08 at 13.34.41.png (deleted) —
attached screen shot of activity monitor
(In reply to rina from comment #0)
> I'm having ongoing problems with using google docs in firefox with high CPU
> load that means sometimes I have to wait to even scroll. 
> 
> Happens everytime I use Firefox, with 2-3 windows open, each with about
> 10-15 tabs. Especially if the tabs are google docs. 
> 
> CPU usage goes up to over 100% and I have to wait to use it. 
> 
> It should just work, so that I can keep working. Works fine in chrome.
> 
> 
> I'm on a Macbook air, 10.10.2 Firefox version 37

As far as I know, because it happens to me every time is while using large documents in Google Docs (with more than 30-40-50 pages) and there are many, many tables in it (the performance becomes very slow and I can't even scroll and I have to wait for the scroll to response). I am using Linux (3.13 kernel).

What exactly is your case? Is it like mine?

I have found people complaining about that in some Google groups (but now I can't find these links). When I find them again, I will post information about users' problems.
hi Ivan 

I don't know unfortunately, I'm on Mac and it seems to happen when I have big files, many google doc tabs open. The pages seem to be reloading everytime the window is open (not the specific) tab, so that might explain why they are slowing down Firefox, and limiting multitab work. But it is just a hunch.
(this doesn't block development efforts or a release)

You could profile it with all addons except the profiler disabled
https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Profiling_with_the_Built-in_Profiler
Severity: blocker → major
Keywords: perf
Whiteboard: [platform-rel-Google][platform-rel-GoogleDocs]
platform-rel: --- → ?
Rina, can you still reproduce? Can you provide a link to an offending spreadsheet?
Shako, maybe you can work with Rina to profile her case?
Flags: needinfo?(sho)
Flags: needinfo?(rjensen)
Hi Andrew,
Sure.

Hi Rina,
Do you find any particular content in google doc could cause this condition?  Or content independent, every time we just open couple windows with 10-15 tabs with google doc could cause such situation?
Flags: needinfo?(sho)
Attached image Screen Shot 2016-07-19 at 09.16.41.png (deleted) —
Pretty much, every time. I've just attached a screen shot of me trying to open a tab here and my browser froze and CPU usage is near 100%.
Flags: needinfo?(rjensen)
Shako, please help to reproduce issue and produce profile data. Thanks.
Flags: needinfo?(sho)
Walter will help on this test.
Flags: needinfo?(sho)
Cool, let me know what I can do to help. Happens consistently so I should have little trouble reproducing.
Flags: needinfo?(wachen)
I can't reproduce it in following environment:
# Windows7 with Firefox 47.0
# Ubuntu 14.04 with Firefox 45.0.2
# MacOS 10.11.5 with Firefox 48.0b4

I observed really high CPU usage when I first tried to open different websites.
1. Launch Firefox
2. Connect to a shopping website and open links with ctrl(so that those links will be opened in a new tab)
3. Open a new window for firefox and connect to Google Drive and open links with ctrl
4. Open another new window for firefox and connect to a blog and open links with ctrl
5. Open a new window for firefox and connect to random websites

each of them have more than 10 tabs

MAC&Windows: CPU usage will go above 100% like what shown in rina's screenshots. However, after few seconds, CPU uage will go back to around 70-80%. It will be stable after most pages loaded (CPU usage around 60-70%). 
Ubuntu: CPU usage will be even lower comparing to MACOS and Windows.

Profile of delayed opening of a 200 page content with txt, table, and image:
https://drive.google.com/file/d/0BwkEhia_D6l_U1hKOWFfV3BBamc/view?usp=sharing
Flags: needinfo?(wachen)
Rina, let us know if need other help. Thanks.
Flags: needinfo?(rjensen)
@walter; the bug was more about opening google docs than general usage. 

So currently i have 4 windows open and probably
10 google docs
4 google pres
3 google sheets

I'll have crashes / over 100% cpu loads at least 2-3 times a day. 

Please let me know if there is something I can do to help document it when it happens,
Flags: needinfo?(rjensen)
Flags: needinfo?(wachen)
Hi, Rina,

I do understand that this bug is all about google docs. We did load:
1. Open a new window for firefox and connect to random websites
2. Connect to a shopping website and open links with ctrl(so that those links will be opened in a new tab)
3. Open a new window for firefox and connect to Google Drive and open links with ctrl
4. Open another new window for firefox and connect to a blog and open links with ctrl
That is a total of 10 ramdon websites, 15 tabs of different content in a shopping website, 20 tabs of google drive documents and sheets, and 10 tabs of a certain blog.

What you can do to help is:
1. get the profiler, and record a new opening webpage when cpu loads go over 100%, and get back to us again. instructions =
https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Profiling_with_the_Built-in_Profiler
2. Try to get a newer version of firefox and see if it is still the same.
3. If you do have other operating system, try to reproduce it in that computer.

Thanks!
Flags: needinfo?(wachen)
Attached image about:support e10s section (deleted) —
Rina, are you running Firefox release? Did you get updated to 48 yet? If so, can you check in about:support to see if you've got "Multiprocess Windows" set to 1/1? I'm curious to know if having a separate content process changes the experience with Google Docs for you.
Flags: needinfo?(rjensen)
hi Andrew

I just updated to 48 (so only been running that for 1 day), I did check and it's set to  Multiprocess Windows 0/3 (Disabled)

Should/can i change that ?
Flags: needinfo?(rjensen)
(In reply to rina from comment #16)
> hi Andrew
> 
> I just updated to 48 (so only been running that for 1 day), I did check and
> it's set to  Multiprocess Windows 0/3 (Disabled)
> 
> Should/can i change that ?

It just means you're not in the small % of users we're rolling that out to. If you want to try, do this:

1. Navigate to about:config (dismiss any "I'll be careful"-type warnings)
2. Search for "browser.tabs.remote.autostart"
3. Double-click the entry (entries, maybe) you see and toggle them to be true
4. Restart and check in about:support again regarding Multiprocess Windows
Whiteboard: [platform-rel-Google][platform-rel-GoogleDocs] → [platform-rel-Google][platform-rel-GoogleSuite][platform-rel-GoogleDocs]
platform-rel: ? → +
hi Andrew

I did enable e10n, saw a temporary better experience but another (or advanced?!) bug emerged where the text on gdocs would go beyond the document and my curser wouldn't fit with the actual location on screen. Made Gsuite unusable in firefox. 

I since deleted everything, profile, bookmarks etc and started over. I'm still seeing a bit of lag compared to use in chrome  but it is much better. I did try and disable one add-on at a time but never saw any real changes to that bug. So still not 100% sure what caused it but doubt it was an add-on. 

The total deletion of profile was less painful then i imagined (biggest sadface was loss of bookmarks) but i saved them on my computer and re-set them manually to avoid other issues (although I'm sure it was unrelated).

It is a lot better than before, I'm back to using Firefox as my main browser. But I must admit, I still see Chrome as a lot better for Gsuite. Less crashes and more functions. Just from a user perspective. 

thanks so much for the help and suggestions! I'll close this bug for now and let you know if anything else emerged.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: