Red Gate forums :: View topic - New Object Filter
Return to RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Memory Profiler 7
ANTS Memory Profiler 7 forum

New Object Filter

Search in ANTS Memory Profiler 7 forum
Post new topic   Reply to topic
Jump to:  
Author Message

Joined: 04 Apr 2013
Posts: 3

PostPosted: Fri May 10, 2013 5:11 pm    Post subject: New Object Filter Reply with quote

I'm currently trying to use this memory profiling software to determine the memory characteristics of some software that needs to have as close to 24/7 up-time as possible. I'm noticing some quirks when I try to do analysis using the "new object" filter.

What does it truly mean to be a new object? I'm aware of the context behind "new" when it comes to snapshots: if it wasn't in the baseline snapshot but exists in the current snapshot, then it is "new". But this doesn't necessarily seem to be working properly from my experience.

My procedure/scenario that I use to see this is as follows:

1) In my software I have a network object that gets created whenever a client connects to my service, creating the new network object on my service. The memory profiling software sees this and displays this behavior correctly.

2) After several minutes of idle time, and I can confirm that nothing is happening on the application level of my software, I take another snapshot and it correctly shows that no new objects were being created.

3) After another several minutes of idle time, I see that a new network object was created according to the memory profiler. My old one is no longer in the "surviving objects" filter. How can this be explained assuming that I am NOT instantiated a new networking object in my code?

I have logging statements in my constructor that explicitly lets me know when these objects have been instantiated, and when I see the newly created object I am not seeing these logging statements. I'm 100% positive that my application code is idle and is not instantiating these or any other new objects during this time period.

I've seen this with other classes in other projects as well and have always ignored it until now. Back to my original question, does "new" in the context of snapshots mean "instantiated" during these snapshots? From what I am seeing, it definitely does not mean this. How can I interpret this? If it doesn't mean instantiated, then what actually does it mean? Under what circumstances can this happen?
Back to top
View user's profile Send private message

Joined: 16 Jun 2010
Posts: 1144
Location: My desk.

PostPosted: Mon May 13, 2013 1:02 pm    Post subject: Reply with quote

Thanks for your post. On the face of it, I'm not sure what would be happening here. According to the documentation, "New" is shown when the object in question is new between the two snapshots you're working with (not necessarily the baseline).

From your description then, it either sounds like we're spuriously detecting a new object when it's not actually the case, or something is triggering a new object to be created outside of your test processes.

I had a quick check in our bugtracker, and the behaviour you describe isn't currently listed as a known problem as far as I can see. Is it possible for you to recreate the problem in a smaller test-case (or are we able to obtain a copy of your application to test here?) If we can reproduce the same behaviour then I'm happy to log a bug and/or explain what's occurring
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group