Robin Day
Robin Day

Reputation: 102538

Enabling Windows Server 2008 Crash Dump for IIS ASP.Net

I have an ASP.Net application that is occasionally crashing and causing the Worker Process to reload. The system is running on IIS 7.5 on Windows Server 2008 R2 64 bit SP1.

I get an Application Error event in the Application Eventlog followed by an Windows Error Reporting Eventlog.

The Windows Error Reporting Event log points me to a directory:

C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_w3wp.exe_624e5315e1074e44338812efe102157b47f6ca8_053f0ff3

Browsing the web indicates that I should be able to find a memory dump in this directory, however, all I have in there is a single file "Report.wer".

My thoughts are that I need to modify some registry settings in order to get a crash dump when this happens again, although I can't seem to find what settings I need to change.

The current registry settings are as follows

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting]
"ErrorPort"="\\WindowsErrorReportingServicePort"
"MaxQueueSizePercentage"=dword:00000001
"PurgeThreshholdValueInKB"=dword:0000000a
"ServiceTimeout"=dword:0000ea60
"MachineID"="EAF7F17C-3D38-42B1-9C22-8CDD82DD7F90"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\Hangs]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\HeapControlledList]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\HeapControlledList\dwm.exe]
"EnableHeapThrottle"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\RuntimeExceptionHelperModules]
"C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\mscordacwks.dll"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\WMR]
"Disable"=dword:00000001

Can someone let me know what settings I may need to change/add in order to get a memory dump the next time the worker process crashes.

Upvotes: 3

Views: 6877

Answers (1)

Robin Day
Robin Day

Reputation: 102538

I have found the following articles which show how to enable the memory dump on Server 2008 R2 SP1.

http://www.symantec.com/business/support/index?page=content&id=TECH74145

http://msdn.microsoft.com/en-us/library/bb787181(VS.85).aspx

I have now done this and am waiting for another crash and then will be able to confirm if these create the dump files or not.

Upvotes: 6

Related Questions