Detecting Memory Leak in ASP .Net
Posted: Tue Jun 10, 2008 10:35 am
I'm currently evaluating .Net Memory Profiler 3.1. I have an ASP .NET application and I want to know if there is memory leaking. So far the tutorial is very instructive, however, I believe it only applies to stateful applications such as Windows Development.
However, in a stateless application such as ASP .Net, should I interpret the results differently? Should I approach the detection differently as well?
Currently this is what I'm doing, I want to make sure if it is correct:
a. Start the profiler on my ASP .Net application.
b. Wait until the page completely loads and then get a snapshot.
c. Since it is a stateless application all the object instances should be disposed as soon as the page load, so I need to just look at the live instances column in the instance page and all the objects in those columns can be considered as a leaking memory, right?
However, in a stateless application such as ASP .Net, should I interpret the results differently? Should I approach the detection differently as well?
Currently this is what I'm doing, I want to make sure if it is correct:
a. Start the profiler on my ASP .Net application.
b. Wait until the page completely loads and then get a snapshot.
c. Since it is a stateless application all the object instances should be disposed as soon as the page load, so I need to just look at the live instances column in the instance page and all the objects in those columns can be considered as a leaking memory, right?