Revisit, Application takes up 1.5GB of memory

  • Thread starter Thread starter John Sheppard
  • Start date Start date
J

John Sheppard

Hello,

I have been trying to track down a problem.

The symptoms are as follows
- My application takes up 1.2gb of memory (when looking in windows task
manager)
- It runs very slowly

To fix the problem I do the following;
- Delete all files out of my bin and obj directory and compile
- Its runs lightning fast and only consumes 370mb of memory (when lookin in
windows task manager)

When I deploy the application or do a random amount of builds the symptoms
return.

Does anyone have any thoughts on why this might be occuring?
Im trying to use the CLR profiler, but it takes a bit of
learning...hopefully this well help...
Thank you
John Sheppard
 
John,

It is hard to say anything without some data. As just a guess, you might
have missing Disposes(), double/triple caching, missing shared state
cleanup..
I think it could be anything. To get some facts, I would advise you to make
a dump of the web application when it reaches the 1.2Gb and then use WinDBG
to check what it has eaten.
With WindDBG and SOS you can get all the heap statistics, objects allocated
and all the other necessary things to understand what is going on.
It is not hard at all. Actually it is much better than using profiler.

Here some good articles:

http://blogs.msdn.com/johan/archive...ll-windbg-and-get-your-first-memory-dump.aspx
http://blogs.msdn.com/johan/archive/2007/11/13/getting-started-with-windbg-part-i.aspx
http://blogs.msdn.com/johan/archive/2007/11/26/getting-started-with-windbg-part-ii.aspx
http://blogs.msdn.com/johan/archive...ryexceptions-how-can-i-troubleshoot-this.aspx


LT
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top