Memory Snapshot comparison
Hi Can you please help me to understand the snapshot comparison view.
When we compare these 2 snapshot we identified that there is total 1220643 objects(New objects) were created between snapshots and 40732 objects(Dead objects) were collected by the moment of taking a second snapshot.
But I am little bit confused about the 1179911 objects(Objects delta) and Bytes delta (266002435 byte). Objects delta and Bytes delta is the difference between the number of new and dead objects and bytes respectively. So As per the Object delta these are the objects which are not collected .
So my question is that
1. In my application(dotnet) this is the only issue that 1179911 objects(Objects delta) is not collected and it occupied 266002435 byte(Bytes delta) of memory ?
2. And the Objects delta is now total Survived Objects ?
3. So if application does not have any issue in that case the Objects delta and Bytes delta will be always zero ?
Please correct me if my understanding is wrong and please also suggest some best solution to solve the issues that identified in the comparison views.
And please also suggest and share your view if you think there is any major problem is identified in this snapshot comparison .
Thanks.
Thanks.
Please sign in to leave a comment.
Hi!
This view shows not issues but the information about your app behaviour. Only you as the author of the app can determine if some objects should be collected, or should continue to stay in the memory and it is OK. Look which objects survived between snapshots, compare with your idea of the application, should they stay or should they be collected. Look at objects created the most, check if there should be such amount of them and so on.
I would recommend you to read the book "Memory Problems in .NET" which you can download for free. It's not about dotMemory but about common principles of memory management in .NET applications.
To learn dotMemory snapshot comparison view you can watch this video tutorial.
More video tutorials and dotMemory documentation you can find on the official dotMemory page.