Here is another situation that you may come across and what to do in order to gather information about it.
The following steps will configure DebugDiag to automatically capture a memory dump of the ASPNET_WP.exe process recycling when it exceeds the memoryLimit. This only applies to the ASPNET_WP.exe process, so if using w3wp.exe, this doesn't apply. The following event is logged when this occurs:
aspnet_wp.exe xxx was recycled because memory consumption exceeded 60% of available RAM
A. Download DebugDiag: ====================
B. Create a Performance Monitor log: ====================================
For the ASP.NET counters, select the version that you are wanting to monitor. Ex. For 1.1 framework, select ASP.NET v1.1.4322 and ASP.NET Applications v1.1.4322.
Note: For more information on Performance monitor, see KB 248345
C. Configure server for the High Memory Event ==================================
Add the following registry keys. These were added to the .NET Framework so that a breakpoint exception will be thrown when the process recycles due to the above event.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET DWord: DebugOnHighMem Value: 1 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET DWord: UnderDebugger Value: 0
C. Configure DebugDiag ===================
Configure DebugDiag to capture the memory dump when the BreakPoint Exception is thrown and when the process stops.
Inject LeakTrack.dll to capture native leak information:
The memory dump will automatically get captured.
A. Stop the Performance Monitor log ===================================
In Performance Monitor: