Re: Memory leak in aspnet_wp.exe
From: Karl Seguin (_at_)
Date: 12/06/04
- Next message: Mahipal Reddy: "Page Numbers in toolbar of Crystal Report viewer"
- Previous message: Peter Strĝiman: "Re: Statics and connections"
- In reply to: RaptorsFan: "Memory leak in aspnet_wp.exe"
- Next in thread: Steve Caliendo: "Re: Memory leak in aspnet_wp.exe"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 6 Dec 2004 10:22:31 -0500
Raptor:
You have a long and difficult journey ahead of you.
Here are some resources that will be key in your battle:
http://blogs.msdn.com/akhune/archive/2004/06/11/153734.aspx
http://blogs.msdn.com/yunjin/archive/2004/01/27/63642.aspx
http://www.scitech.se/memprofiler/ (14 day free trial ought to be good
enough)
http://www.red-gate.com/code_profiling.htm (14 day free trial ought to be
good enough).
First you need to figure out if this is a managed or unmanaged leak. The
first rticle tells you how to figure it out (never mind using SOS stuff with
windbg and simply use perfmon and the above profile r(scitech is probably
better). Assuming it's a managed leak, it isn't actually a leak it's really
the simple fact that you are holding on to references to your objects,
you'll need to do some investigating. You can take snapshots with the above
tools to figure out what objects are taking the most space. You'll have
String and Int32 and Boolean at the top, but look for your own custom
objects, or larger objects such as DataSets, collections and arrays as these
are likely the root objects of the strings and ints which are really holding
on to memory.
Make sure you call Dispose() on things. Simplify your code so you have less
references to the same object all over the place (utility classes can often
help manage these references by providing single point of access).
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/ "RaptorsFan" <RaptorsFan@discussions.microsoft.com> wrote in message news:7A63A7EB-CAAB-4563-80EF-9126E659416F@microsoft.com... > aspnet_wp process accumulates memory usage up to the point when it's more > than 60% of available RAM (2G) and none of .NET applications function. > Sometimes user is able to login, navigate between the pages but can't perform > any operations that generate thing like PDF files using Crystal Reports etc. > Sometimes the application can't even be loaded and sign-in page stays blank. > There are no events that are logged in the event viewer to point to this > problem. However we do find these errors occasionally: > > "aspnet_wp.exe (PID: 3900) was recycled because it was suspected to be in a > deadlocked state. It did not send any responses for pending requests in the > last 180 seconds. This timeout may be adjusted using the <processModel > responseDeadlockInterval> setting in machine.config. " > > and > > "aspnet_wp.exe (PID: 3328) was recycled because it failed to respond to > ping message. " > > and > > "Failed to execute request because QueryInterface for ASP.NET runtime > failed. Error: 0x80004005 Unspecified error " > > Can you tell me how we can trap or log this information so that we can find > what is causing the leak and solve it. > >
- Next message: Mahipal Reddy: "Page Numbers in toolbar of Crystal Report viewer"
- Previous message: Peter Strĝiman: "Re: Statics and connections"
- In reply to: RaptorsFan: "Memory leak in aspnet_wp.exe"
- Next in thread: Steve Caliendo: "Re: Memory leak in aspnet_wp.exe"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|