severe browser lags and high CPU and RAM usage on vk.com
Categories
(Core :: Performance: General, defect)
Tracking
()
| Performance Impact | medium |
People
(Reporter: suprunchuk, Unassigned)
References
Details
Attachments
(1 file)
|
301.42 KB,
application/x-gzip
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0
Steps to reproduce:
Download production version 134.0.2. open several tabs and use a browser.
Actual results:
high CPU and RAM load
Expected results:
normal use of resources
Comment 1•1 year ago
|
||
Doesn't look like this is a security issue and the memory report is anonymized so I'm going to open this up.
Can you elaborate on which processes you think are using too much RAM and what you're basing this on? As a counterexample, I see 2 or 3 processes in the memory report using about 1MiB of RAM so I assume it's not those... The parent process seems to be using about 400MiB which is not nothing but IMO also not loads... so it's not clear to me exactly how big you perceive the problem to be (ie where you're checking total memory use and what you're seeing). You've also not said which sites you're opening - at least one of them has started a bunch of worker threads and is using a lot of memory that way, and from the graphics process my suspicion is at least some of the sites might be using quite a lot of large images or other gpu resources - but of course it's impossible to know without knowing what "several tabs" refers to.
Also, for CPU use the memory report doesn't help us - please could you share a performance profile using https://profiler.firefox.com/ ?
Comment 3•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Performance' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
(In reply to :Gijs (he/him) from comment #1)
Doesn't look like this is a security issue and the memory report is anonymized so I'm going to open this up.
Can you elaborate on which processes you think are using too much RAM and what you're basing this on? As a counterexample, I see 2 or 3 processes in the memory report using about 1MiB of RAM so I assume it's not those... The parent process seems to be using about 400MiB which is not nothing but IMO also not loads... so it's not clear to me exactly how big you perceive the problem to be (ie where you're checking total memory use and what you're seeing). You've also not said which sites you're opening - at least one of them has started a bunch of worker threads and is using a lot of memory that way, and from the graphics process my suspicion is at least some of the sites might be using quite a lot of large images or other gpu resources - but of course it's impossible to know without knowing what "several tabs" refers to.
Also, for CPU use the memory report doesn't help us - please could you share a performance profile using https://profiler.firefox.com/ ?
Comment 5•1 year ago
|
||
This bug was moved into the Performance component.
:suprunchuk, could you make sure the following information is on this bug?
✅ For slowness or high CPU usage, capture a profile with http://profiler.firefox.com/, upload it and share the link here.✅ For memory usage issues, capture a memory dump fromabout:memoryand attach it to this bug.- Troubleshooting information: Go to
about:support, click "Copy raw data to clipboard", paste it into a file, save it, and attach the file here.
If the requested information is already in the bug, please confirm it is recent.
Thank you.
Comment 6•1 year ago
|
||
Hmm. A 2.2 second jank in the parent process is bad. It seems to be doing very slow layout and style in the parent process. Not sure what's going on there but tentatively redirecting to Firefox who can hopefully work with Pasha to figure out the root cause here. An about:support would be helpful, as well as a profile that includes URLs as there is one very janky website in there somewhere that may be related to the parent process jank.
The Performance Impact Calculator has determined this bug's performance impact to be medium. If you'd like to request re-triage, you can reset the Performance Impact flag to "?" or needinfo the triage sheriff.
Platforms: Windows
Impact on browser: Causes noticeable jank
Comment 7•1 year ago
|
||
Thank you for your report! However, we don’t have enough information to investigate further.
If you can provide the requested details, please feel free to reopen the bug so we can take another look.
(In reply to Matjaz Horvat [:mathjazz] from comment #7)
Thank you for your report! However, we don’t have enough information to investigate further.
If you can provide the requested details, please feel free to reopen the bug so we can take another look.
raw data https://drive.google.com/file/d/1QPXGsltWmK8heuc9Lakvuq78klWVy95i/view?usp=sharing
Comment 9•1 year ago
|
||
Reopening given the about:support data - thank you!
The performance profile suggests at least one child is hung for 800+ms waiting to ask marionette if it's running, apparently from the webpage accessing Navigator.webdriver. That seems bad. I don't know why that is using sync IPC but it shouldn't. :whimboo, is that on file somewhere?
But of course, the reason it then takes a long time is that the parent is also hung. Most of that seems to be populating the devtools rules view, and as comment #6 says, doing a bunch of layout/style work. That layout/style work actually appears to be coming from a call to scrollTop inside the rule view population code, so also passing this to some devtools folks - I don't know what they would need to dig in deeper.
It would still be really helpful to have more detailed steps to reproduce here. I'm guessing you're using developer tools on some website - are you able to share anything about that website or an isolated testcase that reproduces the problem?
| Reporter | ||
Comment 10•1 year ago
|
||
hi. I do not know what steps lead to this. I suspect this is a problem due to the fact that I use Vkontakte (a Russian social network). Could you check which side of the problem is on? The link https://vk.com/
Comment 11•1 year ago
|
||
Moving to triage for devtools. I see 2 seconds spent on the DevTools pagestyle actor for getApplied, which seems to indicate a lot of rules.
Opening vk.com, I can see the ruleview is a bit laggy on my machine even if it doesn't fully freeze.
At the moment the devtools ruleview doesn't implement a virtual viewport or any other trick to properly handle scenarios where it needs to display many rules.
Pasha: To make sure: are you intentionally using DevTools to debug vk.com ?
Comment 12•1 year ago
|
||
For reference, the scrollHeight of the ruleview on vk.com is 94999px tall.
| Reporter | ||
Comment 13•1 year ago
|
||
(In reply to Julian Descottes [:jdescottes] from comment #11)
Moving to triage for devtools. I see 2 seconds spent on the DevTools pagestyle actor for
getApplied, which seems to indicate a lot of rules.
Opening vk.com, I can see the ruleview is a bit laggy on my machine even if it doesn't fully freeze.At the moment the devtools ruleview doesn't implement a virtual viewport or any other trick to properly handle scenarios where it needs to display many rules.
Pasha: To make sure: are you intentionally using DevTools to debug vk.com ?
Hi. I'm having problems with closed DevTools. I did not open the debugging of the site, my browser freezes without it just when using it as a "regular user".
| Reporter | ||
Comment 14•1 year ago
|
||
(In reply to Julian Descottes [:jdescottes] from comment #12)
For reference, the scrollHeight of the ruleview on vk.com is 94999px tall.
Maybe it came up when I was just scrolling through the news feed.
Comment 15•1 year ago
|
||
(In reply to Pasha from comment #13)
(In reply to Julian Descottes [:jdescottes] from comment #11)
Moving to triage for devtools. I see 2 seconds spent on the DevTools pagestyle actor for
getApplied, which seems to indicate a lot of rules.
Opening vk.com, I can see the ruleview is a bit laggy on my machine even if it doesn't fully freeze.At the moment the devtools ruleview doesn't implement a virtual viewport or any other trick to properly handle scenarios where it needs to display many rules.
Pasha: To make sure: are you intentionally using DevTools to debug vk.com ?
Hi. I'm having problems with closed DevTools. I did not open the debugging of the site, my browser freezes without it just when using it as a "regular user".
Your performance profile indicates that DevTools are open when you recorded it. Maybe they are in a separate window which is somehow in the background? Can you make sure that in Tools > Browser Tools > Web Developer Tools is unchecked?
Or if you mean that you have the issue both when DevTools are open or not, can you record another profile without DevTools open?
(for the DevTools specific issue, I think this is covered by Bug 1903632).
| Reporter | ||
Comment 16•1 year ago
|
||
(In reply to Julian Descottes [:jdescottes] from comment #15)
(In reply to Pasha from comment #13)
(In reply to Julian Descottes [:jdescottes] from comment #11)
Moving to triage for devtools. I see 2 seconds spent on the DevTools pagestyle actor for
getApplied, which seems to indicate a lot of rules.
Opening vk.com, I can see the ruleview is a bit laggy on my machine even if it doesn't fully freeze.At the moment the devtools ruleview doesn't implement a virtual viewport or any other trick to properly handle scenarios where it needs to display many rules.
Pasha: To make sure: are you intentionally using DevTools to debug vk.com ?
Hi. I'm having problems with closed DevTools. I did not open the debugging of the site, my browser freezes without it just when using it as a "regular user".
Your performance profile indicates that DevTools are open when you recorded it. Maybe they are in a separate window which is somehow in the background? Can you make sure that in Tools > Browser Tools > Web Developer Tools is unchecked?
Or if you mean that you have the issue both when DevTools are open or not, can you record another profile without DevTools open?
(for the DevTools specific issue, I think this is covered by Bug 1903632).
Good. Let me record a new profile.
Here are the steps I'm doing
- open the link https://vk.com/
- log in to your account.
- Open the news feed https://vk.com/feed
- In this step, I have enabled the profiler.
- I'm doing an F5 refresh of the page. (loading takes about 10 seconds)
- Scroll down the news feed. I'm just reading the news feed.
The actual result: CPU usage is 100% and other PC parameters are loaded very heavily.
Comment 17•1 year ago
|
||
Thanks for sharing another profile. While I no longer see references to files from the DevTools inspector, I can still some activity from the Network monitor. Are you sure you don't have a devtools window open somewhere?
In the meantime, sending back to Firefox General as this doesn't seem related to devtools.
Updated•1 year ago
|
Comment 18•1 year ago
|
||
So with this latest profile, it doesn't look like the parent process is janking at all - instead, it's the web content process at vk.com which appears to be very very busy. Moving back to Core :: Performance so that the newest profile can be reevaluated by the platform team.
| Reporter | ||
Comment 19•1 year ago
|
||
hi. You mean it's really about vk.com and it has nothing to do with the browser?
Comment 20•1 year ago
|
||
(In reply to Pasha from comment #19)
hi. You mean it's really about vk.com and it has nothing to do with the browser?
Not really we are just trying to identify the best team to look at the issue. Your initial report pointed to DevTools, but given the latest information you provided we are investigating a different angle.
To be clear the website might be doing something wrong, but at this point we can't really tell.
(In reply to :Gijs (he/him) from comment #9)
The performance profile suggests at least one child is hung for 800+ms waiting to ask marionette if it's running, apparently from the webpage accessing
Navigator.webdriver. That seems bad. I don't know why that is using sync IPC but it shouldn't. :whimboo, is that on file somewhere?
No, there is no bug about that yet. Thanks for pointing that out. I've now filed bug 1960319.
(In reply to Henrik Skupin [:whimboo][⌚️UTC+2] from comment #21)
(In reply to :Gijs (he/him) from comment #9)
The performance profile suggests at least one child is hung for 800+ms waiting to ask marionette if it's running, apparently from the webpage accessing
Navigator.webdriver. That seems bad. I don't know why that is using sync IPC but it shouldn't. :whimboo, is that on file somewhere?No, there is no bug about that yet. Thanks for pointing that out. I've now filed bug 1960319.
FYI this is now fixed in Marionette and Remote Agent. Both components use shared data now to sync the running state.
Updated•1 year ago
|
| Reporter | ||
Comment 23•1 year ago
|
||
Hi. I see that some corrections have been made. Can you tell me when they will be released? I got an update to stable version 139.0 today, are there any changes here?
Description
•