Are heap snapshot identifiers guaranteed to be monotonically increasing?

I’m using heap snapshots to debug a potential memory issue. As the documentation indicates objects are shown in this format:

[email protected]

Where NumericIdentifier is:

This is an object ID. Displaying an object’s address makes no sense, as objects are moved during garbage collections. Those object IDs are real IDs — that means, they persist among multiple snapshots taken. This allows precise comparison between heap states. Maintaining those IDs adds an overhead to GC cycles, but it is only initiated after the first heap snapshot was taken — no overhead if heap profiles aren’t used.

I’m wondering if the identifiers are guaranteed to be monotonically increasing? That is given:

[email protected]
[email protected]

Can I rely on the first object to be older (was allocated before) than the second one?

If yes – how strong is the guarantee? (Does it hold between constructor names for instance?)

How to figure out memory leak in node process

My nodejs application is leaking memory, so I was trying to use heapdump to compare the memory changes, unfortunately, memory does not change in headdump, but my nodejs process is leaking memory.So I was thinking native-modules could be one culprit, then I was using mtrace to figure it out.
But I could not understand Module “/lib64/” is increasing the size.

Does anyone could help give me some suggestions of tools or ways to figure out memory leak that does not happens in heap itself.

Many appreciate.

How to find common objects between heap snapshop in Google Dev Tools?

I am working on a Memory leak issue in my Angular 1.4.7 application. I have recorded couple of heap snapshots and i can see that the Array is keep increasing between my snapshots. How to identify the objects which are common between snapshots?

The comparison view only shows the Added and Deleted objects between snapshots. I was looking for common objects between the snapshots so that i can look which are my array’s are still not being collected. Any idea?

I am trying to use the Summary view on a specific snapshot and finding objects which are in other snapshots too.

Your inputs will be greatly appreciated.