New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 707136 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression


Participants' hotlists:
TC


Sign in to add a comment

Memory leak in Chrome main process when keeping navigating

Reported by ypz...@gmail.com, Mar 31 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.110 Safari/537.36

Steps to reproduce the problem:
1. Unpack the attached MemoryLeak.zip to get the simple demo extension.
2. Launch Chrome.
3. Load the unpacked extension.
4. Run for a period of time, for example, 30 minutes or 1 hour.
5. When running, open Windows performance monitor or other tools to monitor Chrome memory, especially Chrome main process memory.

What is the expected behavior?
No memory leak in Chrome main process.

What went wrong?
Memory leak in Chrome main process.
Please see attached PNG files, which show the memory leak when running with the demo extension, for 1 hour. Three PNG file show private bytes, private working set, and working set memory.

Did this work before? Yes I tested on Chrome 46, no memory leak in Chrome main process.

Chrome version: 57.0.2987.110  Channel: stable
OS Version: 6.3
Flash Version: 

The simple demo extension just keeps navigating to Google. Every 5 seconds, open a tab, navigate to Google, then close that tab. This is similar to normal user behaviors, keeping navigating. Notice in Chrome, when user navigates from URL A to URL B, the tab for URL A is closed, and a new tab is opened for URL B.
 
MemoryLeak.zip
993 bytes Download
Chrome_57_main_process_memory_leak_Private_Bytes.png
269 KB View Download
Chrome_57_main_process_memory_leak_private_Working_Set.png
271 KB View Download
Chrome_57_main_process_memory_leak_Working_Set.png
270 KB View Download

Comment 1 by ypz...@gmail.com, Mar 31 2017

The high-lighted lines in the three attached PNG files show memory leak in Chrome main process, for private bytes, private working set, and working set.

Comment 2 by ypz...@gmail.com, Mar 31 2017

Tested on Chrome 55, there is similar memory leak in Chrome main process.
Labels: Needs-Triage-M57
Cc: benhenry@chromium.org
Labels: Performance-Memory
benhenry@: could you triage? Seems to be related to tab manager.
Cc: rsch...@chromium.org
Labels: -Needs-Triage-M57
Owner: bauerb@chromium.org
Status: Assigned (was: Unconfirmed)
Kicking to another level of triage.

This might be the same as crbug.com/718980

This bug has good traces and shows a reproducible memory leak with NTP.

Comment 6 by bauerb@chromium.org, May 16 2017

Cc: bauerb@chromium.org
Owner: ----
Status: Available (was: Assigned)
Issue 718980 is on Android, this one is on Windows, and they don't share the NTP implementation.
Cc: etienneb@chromium.org
+etienneb who is looking at NTP on desktop.

Comment 8 by bauerb@chromium.org, May 16 2017

Components: UI>Browser>NewTabPage
There is a bug for tab creation: 
  https://bugs.chromium.org/p/chromium/issues/detail?id=707136

We recently landed a leak in mojo for every tab creation:
  https://bugs.chromium.org/p/chromium/issues/detail?id=704938 

If this bug is still present on canary, I can give a look to it.
There is a bug for tab creation [previous link was wrong]:
https://bugs.chromium.org/p/chromium/issues/detail?id=705656

There is still this pending potential leak:
  https://bugs.chromium.org/p/chromium/issues/detail?id=707344

Owner: etienneb@chromium.org
Status: Fixed (was: Available)

Sign in to add a comment