Red Gate forums :: View topic - Multiple projects within solution
Return to www.red-gate.com RSS Feed Available

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

Multiple projects within solution

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



Joined: 15 Jul 2011
Posts: 3

PostPosted: Fri Jul 15, 2011 4:17 pm    Post subject: Multiple projects within solution Reply with quote

I am running the memory profiler looking for a memory leak, the problem is that the actual leak is happening in a different project then the one the profiler is defaulting to when I click "Profile Memory".

As a result (since the running project does almost no work) I am not really seeing any of my memory in use. Is there anyway to see the entire solution instead of just one project?
Back to top
View user's profile Send private message
dom.smith



Joined: 03 Jun 2010
Posts: 94
Location: Cambridge, UK

PostPosted: Fri Jul 15, 2011 5:31 pm    Post subject: Reply with quote

Hi,

It sounds like you are using the ANTS Memory Profiler Visual Studio add-in? If the add-in starts the wrong project, try starting the Memory Profiler as a separate program (not using the add-in).

If you have several processes you want to profile together, this trick may help:
1. Create a batch file which starts all of the processes.
2. In ANTS Memory Profiler, profile that batch file & ensure that 'Profile child processes' is selected.

Did this help?

Dom.
_________________
Dominic Smith,
Project Manager,
Red Gate Software.
Back to top
View user's profile Send private message
StephenT



Joined: 15 Jul 2011
Posts: 3

PostPosted: Fri Jul 15, 2011 6:04 pm    Post subject: Reply with quote

Sorry I should of mentioned I am trying to profile a Silverlight app that only works when I am debugging from visual studio or running it from the web. Local copies don't work.

The project that it is monitoring is the one that successfully handles the startup of the silverlight app for its web components.

Also all the projects are contained within the same solution.
Back to top
View user's profile Send private message
dom.smith



Joined: 03 Jun 2010
Posts: 94
Location: Cambridge, UK

PostPosted: Mon Jul 18, 2011 5:21 pm    Post subject: Reply with quote

Hi,

I might have misunderstood, but you should still be able to profile the application from the ANTS Memory Profiler interface:

    1. Ensure that Internet Explorer is not currently running
    2. In the ANTS Memory Profiler interface, choose Silverlight 4 browser application
    3. In the Silverlight application URL, enter the URL of the web page where the Silverlight application runs correctly. The page can be on a remote server.
    4. The Silverlight application is profiled

Just to clarify, the Visual Studio add-in has no concept of the Visual Studio solution, and so you cannot select a different project in the solution.

Please let me know if this does not work for some reason.

Dom.[/list]
_________________
Dominic Smith,
Project Manager,
Red Gate Software.
Back to top
View user's profile Send private message
StephenT



Joined: 15 Jul 2011
Posts: 3

PostPosted: Mon Jul 18, 2011 9:17 pm    Post subject: Reply with quote

I tried this method but I found that a majority of the data was closed off from me as "Private Bytes". I could see about 6mb of data being used, but the leak was in the private bytes which I could not view. The private bytes started at 150mb and went up to 300mb but in the variables that I was able to see there was no significant change.

However, compared to just plain running ANTS from visual studio with default settings it did show more data. Just not the data I need.
Back to top
View user's profile Send private message
dom.smith



Joined: 03 Jun 2010
Posts: 94
Location: Cambridge, UK

PostPosted: Mon Jul 18, 2011 9:53 pm    Post subject: Reply with quote

Hi,

In that case, it sounds as though your problem is in unmanaged memory: the main indication of an unmanaged memory leak is when the number of private bytes (the amount of real and paged memory requested by the program) increases while the number of bytes in the .NET heap does not grow as quickly.

If you have not already done so, please read Checking unmanaged memory usage, which might help you to find the problem.

If you are still experiencing problems after this, please let me know.

Dom.
_________________
Dominic Smith,
Project Manager,
Red Gate Software.
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