New issue
Advanced search Search tips

Issue 608757 link

Starred by 3 users

Issue metadata

Status: Archived
Owner:
Closed: May 2016
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

High Memory Usage in Google Chrome Helper

Reported by martin.a...@gmail.com, May 3 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36

Steps to reproduce the problem:
Reproducing is super hard. Last time this issue occurred was back in February where I had one process consuming 16Gb of ram!

What is the expected behavior?
Most GCHs sit around 200-300Meg

What went wrong?
One process decides to consume vast sums of RAM. Even trying to run the trace causes that new GCH to spike to 2.6Gb.

Did this work before? N/A 

Chrome version: 50.0.2661.86  Channel: n/a
OS Version: OS X 10.11.3
Flash Version: Shockwave Flash 21.0 r0

One thing that I did do that proceeded the lack of response from my machine was I put it to sleep. Now normally this is fine. I run the laptop in clamshell mode and most of the time I work from one office but I do undock twice or more a week, usually with no issues. Today though machine wouldn't go to sleep. Took a good 5minutes to sleep. When waking in the other office machine was totally unresponsive for 10minutes then was barely able to print the one file I needed. When I got home I noticed that we were burning 8Gb of Swap which explains the loss of performance.

I've created a trace based on the advice from Primiano Tucci but it is 90Meg so will put it in a drop box and link it via a comment.
 
I'm uploading the Trace file here: https://www.dropbox.com/sh/wcxsdw94uqo793t/AABlNDgDx4W7S-tdnieBEb2na?dl=0

The browser did show an empty screen after I clicked 'stop' when the buffer was 100% full. I don't know if this one actually has anything real in it. 

I've left a second trace running but it also has been sat at 100% for a long time. Do I need to press stop? I'd expect as I requested a recording that fills the buffer to run till it is full then display the results.

Screen Shot 2016-05-03 at 16.49.18.png
9.2 KB View Download
I have a similar issue, and I have an emergency fix that works -- if the system is sufficiently responsive to make it possible to apply.

Now using Chrome 51.0.2704.29 beta (64-bit) on  MacOS 10.11.3, but this issue has been more or less continuous over the last approximately six months so several versions of both are implicated.  Flash: completely removed.

About once a week following no clear pattern, my iMac suddenly becomes increasingly unresponsive over a short period, several minutes. Activity Monitor --> CPU Usage (which I routinely leave active) registers 100% for all processors.  If I can manage to open Activity Monitor --> Activity Monitor, I see  Memory Pressure has recently reached the top of the graph and is red.  I also observe multiple instances of GCH, many with memory allocations > 1GB.  (The record: 16GB.) 

Emergency measures:   By this point the system may be completely unresponsive, so the only choice is to shut down with the power button (or remote SSH) and re-boot.  

Sometimes I can still navigate within Activity monitor; if so, I look for the instance of GCH with the highest allocation (usually > 1GB) and force-quit that.  I continue knocking off GCH instances until Memory Pressure is re-established as moderate and green.  I don't touch GCH instances with normal (<< 1GB) allocations).  In every case, this restores normal system operation, open apps continue as before, and there's no clear ill effect on open Chrome pages. Crude, but effective.

HTH
Labels: Needs-Feedback
[mac triage] I think this is normal. Google Chrome Helper processes include all memory used by a web page's javascript. Some badly written web pages may consume many GB of memory due to leaks before Chrome decides to kill them.

Please compare the PID column in Activity Monitor with the Chrome Task Manager, which you can access from Chrome Menu -> More Tools -> Task Manager.

Chrome will annotate each PID with the website(s) that are running in that helper process. If there's a mismatch, there may be a problem. Otherwise it's likely a particular website that consumes a lot of memory. Let us know if you see anything strange.

Comment #2 may be  Issue 373923 .
I keep forgetting to look at the CTM. Unfortunately it didn't totally help. 

Three processes have unusually high Memory usage. 
One is the Browser process itself
One is the tracing.. which incidentally shows as 3.3Gb in Activity Monitor.
The last looks to be a set of extensions and I think that was the one that I noticed first that sparked this thread. 

Is there anyway to get a better breakdown so I can tell which of the three extensions in that process might be the culprit?

Screen Shot 2016-05-05 at 11.22.52.png
28.2 KB View Download
Project Member

Comment 5 by sheriffbot@chromium.org, May 5 2016

Labels: -Needs-Feedback Needs-Review
Owner: tapted@chromium.org
Thank you for providing more feedback. Adding requester "tapted@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
What you see there are the extensions' background pages grouped together - extensions that have 'Content Scripts' may also reside in the memory used for the tabs.

But, that is quite a lot for the extensions' background pages. 100-200MB is more typical. I would try going to chrome://extensions and selectively unchecking the 'Enabled' checkbox to see if one of them is a big contributor.
Labels: -Needs-Review Needs-Feedback
@martin.a.ritchie: Could you please update the thread with the required information as per the comment #6

Thank you.
Hey guys, sorry for the delay in getting back to you. The machine crashed over the weekend so will have to wait for the memory usage to go crazy again. I'll look to narrow things down when it reoccurs but this time round the signs do point towards an  extension.

Thanks for your assistance, sorry I wasn't able to provide anything more concrete this time round. 
Project Member

Comment 9 by sheriffbot@chromium.org, May 9 2016

Labels: -Needs-Feedback Needs-Review
Thank you for providing more feedback. Adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Needs-Review Needs-Feedback
I'll leave this bug open for another week, so if you hit this case again, please let us know if any specific extension was the culprit (as per comment #6).

After about a week, we'll start getting nag mails from sheriffbot, so at that point it may be best to close out this bug and open a new one if the high memory usage crops up again.
Status: Archived (was: Unconfirmed)

Sign in to add a comment