cis
cis

Reputation: 1377

Chrome memory measurement now almost flat for longer test runs

In order to check our web application for memory leaks, I run a machine which does the following:

That way, we can see how much the memory increases and which are the problematic parts of our application: At some point the memory increases, at some point it decreases. Till yesterday, it looked like this:

enter image description here Bright red (upper line): totalJSHeapSize, light red (lower line): usedJSHeapSize

Yesterday, I updated Chrome to version 69. And now the chart looks quite different:

enter image description here The start and end amount of memory used (usedJSHeapSize) is almost the same. But as you can clearly see, the way it changes over the course of the test (ca. 1,5h) is quite different.

My questions are now:

I'm also thankful for any background information on how Chrome changed its memory measurement.

Some additional info:

EDIT: It seems this was a bug of Chrome version 69. At least, with an update to Chrome 70, this strange behavior is gone and everything looks almost as before.

Upvotes: 1

Views: 84

Answers (1)

Sanjeev
Sanjeev

Reputation: 358

I don't think you should be worry about it. This can happen due to the memory manager used inside the chrome. You didn't mentioned the version of your first memory graph, possibility that the memory manager used between these two version is different. Chrome was using the TCMalloc which take the large chunk of memory from the OS and manage it, once the memory shortage happenned with TCMalloc then it ask again a big chunk of memory from OS and start managing it. So the later graph what you are seeing have less up and downs (but bigger then previous one) due to that. Hope it answered your query.

As you mentioned that

The outcome of the memory measurement is quite stable - both before and after the update of Chrome

You don't need to really worry about it, the way previously chrome was allocating memory and how it does with new version is different(possible different memory manager) that's it.

Upvotes: 1

Related Questions