Giant memory leak on MacOS when visiting certain pages, doesn't show up in task list |
||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.88 Safari/537.36 Example URL: https://grow.googleplex.com/ Steps to reproduce the problem: 1. Open MacOS Activity Monitor and note that overall system memory usage is about 1.7 GB 2. Start Chrome. Memory usage increases moderately. 3. Visit Google's internal "perf" tool and open several tabs with different reviews. Start scrolling through one or two of them. What is the expected behavior? Memory usage shown in Activity Monitor increases moderately with the number of open tabs, and corresponds to memory usage shown in the chrome Task List pane. What went wrong? Memory usage in Activity Monitor skyrockets by several gigabytes and continues to rise. The Task List pane shows nothing unusual (double-digit megabytes per tab). In the Activity Monitor task list, only the main Chrome (not Chrome Helper) process is using lots of memory. In my case, the Compressed Memory column suddenly shows > 7 GB. Closing the tabs that caused the problem does not free up the memory. Does it occur on multiple sites: N/A Is it a problem with a plugin? N/A Did this work before? N/A Does this work in other browsers? Yes Chrome version: 57.0.2987.88 Channel: beta OS Version: OS X 10.12.3 Flash Version: The symptoms sound like bug 669775, but from the comments there, it sounds like that should be fixed in this version, so I'm reporting this separately.
,
Mar 9 2017
Switched from my 2011 Macbook Pro (where this bug was filed) to a 2014 Macbook Air. Seems to not happen on the Air, with Chrome 56.0.2924.87 (64-bit) and the same MacOS version.
,
Mar 9 2017
,
Mar 9 2017
This could be related to number of layers. Turning on high-DPI mode on my macbook air (stable, 56.0.2924.87) and turning on layer overlays shows a vast number of layers for such a simple page. Additionally, it looks like at least some of the layers are repainting even when I am not *doing* anything.
,
Mar 9 2017
Random hacking at CSS: * Removing overflow: auto; on md-content removes a good number of layers but not all. * Both the drop-down arrows on select boxes and the drop down arrows on the areas are all translated and transformed, so we promote them. * There are additional bezier transitions on many items, though I've been unable to get them to affect the number of layers yet.
,
Mar 9 2017
,
Mar 9 2017
,
Mar 10 2017
,
Mar 10 2017
With regards to the original memory issue, I am so far unable to reproduce quite such a severe increase using a Macbook Air with devtools-faking-high-DPI and the below Chrome versions. Steps taken: 1. Opened Activity Monitor, checked system memory 2. Opened 4 tabs from the application, turn on devtools high DPI mode for each. 3. Scroll all 4 tabs for a while (few minutes) 4. Check memory (below). 5. Close tabs. Chrome 56.0.2924.87 (64-bit): System memory started at 4.64GB. At step 3, system memory was 6.16GB, a 1.52GB increase. Compressed memory did not change, nor any of the other metrics I could see. No specific Chrome process was high; top is a 'Google Chrome Helper' with 450MB, next is the browser process with 227MB. After closing the tabs, memory used dropped to 4.99GB. Chrome 59.0.3037.0 (64-bit): System memory started at 3.87GB. At step 3, system memory was 5.34GB, a 1.47GB increase. Compressed memory did not change, nor any of the other metrics I could see. No specific Chrome process was high; top 3 were 'Google Chrome Helper's with ~450MB. After closing the tabs, memory used dropped to 3.61GB. I will try to find a Macbook pro to attempt reproduction on.
,
Mar 10 2017
Note that this is a 2011 Macbook Pro, so it has a low-dpi screen, not a high-dpi one. The bug I linked to at the top said something about it happening more often if memory was low at startup (this MBP has only 4 GB of RAM, so memory is always "low" by modern standards). Since I've had this machine for 6 years now, I may have weird stuff in my chrome flags or something. If there's an easy way to capture those, tell me the incantation and I can post it here.
,
Mar 10 2017
Oh sorry, I had missed that it was an older Macbook Pro. In that case ignore everything I said in #4, #5, and #9! (I mean, the page still has a lot of layers on high DPI. But it's irrelevant to this bug.) Is your Macbook Pro 2011 model 32 or 64 bit? (Should show up in the Chrome version at chrome://version afaik).
,
Mar 10 2017
,
Mar 10 2017
Just checked, the complete version string is: 57.0.2987.88 (Official Build) beta (64-bit) I'm surprised the auto-filled version field in the bug filing form leaves out the (64-bit) part.
,
Mar 10 2017
Thank you for providing more feedback. Adding requester "schenney@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Mar 10 2017
I doubt this is Blink compositing.
,
Mar 10 2017
(There hasn't been a 32 bit Mac Chrome release since early 2014, so it's omitted on Mac. Not that this helps with anything here.)
,
Mar 17 2017
smcgruer: Are you planning on looking into this further?
,
Mar 17 2017
Sorry; I had intended to try and reproduce on my Macbook Air on non-composited mode, but was not planning on investigating further after that. Since the problem occurred on low-DPI it isn't compositing related.
,
Jul 25 2017
,
Jul 25
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jul 25
,
Jul 25
I don't think this is reproducible or actionable any more. If it's happening on current Chrome releases on recent hardware and macOS releases please file a new bug. |
||||||||||||||
►
Sign in to add a comment |
||||||||||||||
Comment 1 by a...@chromium.org
, Mar 9 2017Components: Internals>GPU