When does Chrome garbage collect?

3,974 views
Skip to first unread message

Vasi

unread,
Jun 13, 2017, 10:35:28 AM6/13/17
to Chromium-discuss, PhistucK, Chromium-discu.
Is Chrome allocated memory for each tab? If that's true, how much memory is allocated for each tab. And when chrome does GC? It's my doubts that are improving our Web App's performance.

Jakob Kummerow

unread,
Jun 14, 2017, 9:01:07 AM6/14/17
to vasika...@gmail.com, Chromium-discuss, PhistucK
Yes, Chrome manages memory per tab. GC activity is complicated and also changes over time as the team improves it. The summary is that most of the GC work is done incrementally, some concurrently, some in parallel; it's driven mostly by allocation amount and idle time.

Do you have a more specific question?

On Tue, Jun 13, 2017 at 4:35 PM, Vasi <vasika...@gmail.com> wrote:
Is Chrome allocated memory for each tab? If that's true, how much memory is allocated for each tab. And when chrome does GC? It's my doubts that are improving our Web App's performance.

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss


Vasi

unread,
Jun 15, 2017, 2:19:49 AM6/15/17
to Chromium-discuss, vasika...@gmail.com, phis...@gmail.com

Thanks Jakob. Yeah, I have more specific questions. I have recorded my app's performance by using Chrome's performance tool. It's 85 Sec process. During this time, Garbage Collection happened in successive intervals. I have attached the "GIF" image of this process. Can you suggest us a solution for this one? We have developed our "APP" using "React" and adopted "Redux" for state management.

Is there any API we can register/listen to get the alarm call from browsers to our developers when our users are about to reach the maximum memory? Please share with us if there is anything like that. 

Jakob Kummerow

unread,
Jun 16, 2017, 7:47:26 AM6/16/17
to Vasi, Chromium-discuss, PhistucK
On Thu, Jun 15, 2017 at 8:19 AM, Vasi <vasika...@gmail.com> wrote:

Thanks Jakob. Yeah, I have more specific questions. I have recorded my app's performance by using Chrome's performance tool. It's 85 Sec process. During this time, Garbage Collection happened in successive intervals. I have attached the "GIF" image of this process. Can you suggest us a solution for this one?

A solution for what problem exactly? Everything looks fine to me.
 
We have developed our "APP" using "React" and adopted "Redux" for state management.

Is there any API we can register/listen to get the alarm call from browsers to our developers when our users are about to reach the maximum memory? Please share with us if there is anything like that. 

There is no way to get a notification on out-of-memory.
However, you can get a coarse indication of current memory usage from the console.memory object.
Also, you should probably have automated internal tests to check that memory consumption of your app remains sane and there are no leaks, so that you can find problems before they ever reach your users.
Reply all
Reply to author
Forward
0 new messages