« Previous Next »

Thread: Faulting application w3wp.exe / unable to get a dump with ADPlus

Last post 11-06-2009 5:35 PM by slikchucky. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 10-29-2009, 2:50 PM

    Faulting application w3wp.exe / unable to get a dump with ADPlus

    I am trying to diagnose a problem with app pools crashing in an ASP.NET application.

     

    My environment:

    ·         Windows Server 2003 Enterprise x64 Edition, Service Pack 2

    ·         .NET 3.5

    ·         Windows Debugging Tools (64-bit)

     

    In terms of symptoms, I am seeing entries in the Windows Application Event Log such as:

     

    Faulting application w3wp.exe, version 6.0.3790.3959, stamp 45d691cc, faulting module kernel32.dll, version 5.2.3790.4062, stamp 462643a7, debug? 0, fault address 0x0000000000027d8d.

     

    These are accompanied by entries in the httperr log such as:

    80 HTTP/1.1 GET /Default.aspx - 1775306986 Connection_Abandoned_By_AppPool [poolname]

    Additional information about the crashes:

    ·         They do not seem to happen at any particular time of day. Sometimes there are no crashes for a few days, other times there is some activity every 12 hours or so, other times there are multiple crashes every 30 minutes or so over a period of several hours.

    ·         As the crashes also happen during the “off hours” for the application, load is not necessarily an issue. The web servers are also generally under a relatively low utilization levels.

    ·         Occasionally there will be one or two crashes a few minutes apart, but more often than not there are there 3+ crashes in quick succession. With the default app pool rapid-fail protection configuration in place, the app pool is disabled when more than 5 crashes occur within a 5 minute span of time.

    ·         There are a number of servers in a hardware load-balanced setup. Not always, but usually multiple servers are affected at about the same time.

    ·         Httperr log entires show the “Connection_Abandoned_By_AppPool” messages for various requests – .asmx, .aspx and .svc (WCF).

    I have attempted to capture a dump file using ADPlus, without any success. I attached the debugger using the following command:

    Adplus.vbs – c c:\ad.config –pn w3wp.exe

    The config file passed in is as follows:

     

    <ADPlus>

        <Settings>

            <RunMode>crash</RunMode>

        </Settings>

    <Exceptions>

    <Config>

        <Code> AllExceptions    </Code>

        <Actions1>   Void     </Actions1>

        <Actions2>MiniDump;Log;Time;</Actions2>

    </Config>

    </Exceptions>

    </ADPlus>

     

    The debugger starts up successfully and I see the following in the log:

     

    0:052> *

    0:052> * ADPlus is monitoring: W3WP.EXE_[app pool name]

    0:052> * for  1st chance and 2nd chance exceptions as configured above.

    0:052> * To change ADPlus configuration please refer to ADPlus.Doc. This file can be found

    0:052> * in the same folder as ADPlus.vbs

    0:052> *

    0:052> g

     

    However, when the app pool crashes, there is no dump created and no entries in the log, other than something like:

     

    Executing custom commands

     User Mode Time

      Thread       Time

      30:a98       0 days 0:00:00.171

     

    I believe the adplus configuration is correct. I have verified this by attaching it to a sample console application set up to simulate a crash due to a null pointer exception and attaching it to w3wp.exe and simulating a crash due to a null pointer exception in a timer. However, when that happens, the event log entries automatically generated already contain a stack dump and all the necessary information for me to debug the issue. These crashes unfortunately do not provide any information other than what is mentioned above.

     

    So at this point my question is twofold:

    1.      Why am I unable to obtain a crash dump of w3wp.exe using adplus?

    2.      What else can I try to diagnose w3wp.exe faulting?

    Any assistance would be much appreciated.

  • 10-29-2009, 10:08 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,417

    Re: Faulting application w3wp.exe / unable to get a dump with ADPlus

    As IIS 6 recycles application pools, ADPlus cannot automatically attach the debugger onto the new processes.

    Consider DebugDiag 1.1 and a crash rule.

    http://support.microsoft.com/kb/919789

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 10-29-2009, 10:56 PM In reply to

    • Sansom
    • Top 500 Contributor
    • Joined on 11-14-2006, 3:57 AM
    • Bangalore
    • Posts 22

    Re: Faulting application w3wp.exe / unable to get a dump with ADPlus

    For 64bit processes you can use the new DebugDiag 64bit version

    http://blogs.iis.net/ganekar/archive/2009/10/29/debugdiag-1-1-x64-is-available-now.aspx

    Cheers,
    Santhosh

    visit my blogs at
    http://blogs.msdn.com/sansom
  • 10-30-2009, 1:48 PM In reply to

    Re: Faulting application w3wp.exe / unable to get a dump with ADPlus

    Sansom:

    For 64bit processes you can use the new DebugDiag 64bit version

    http://blogs.iis.net/ganekar/archive/2009/10/29/debugdiag-1-1-x64-is-available-now.aspx

    I just noticed that they finally ported it to 64-bit today as well. I've got it set up now, but of course no crashes have taken place yet :(

     

    lextm:

    As IIS 6 recycles application pools, ADPlus cannot automatically attach the debugger onto the new processes.

    Consider DebugDiag 1.1 and a crash rule.

    This is true, but it does not explain why it's not able to capture the first crash. I believe DebugDiag is just a pretty wrapper around ADPlus anyway, but I've got the new 64-bit version of it set up now, so hopefully I'll have an update on this soon.

  • 10-30-2009, 8:52 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,417

    Re: Faulting application w3wp.exe / unable to get a dump with ADPlus

    Of course DebugDiag is totally a new thing if you understand its architecture.

     

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 11-06-2009, 5:35 PM In reply to

    Re: Faulting application w3wp.exe / unable to get a dump with ADPlus

    Just to follow up -- it turned out to be a StackOverflowException, which explains why I was not getting the usual crash info. I was able to get the dump by setting the Kernel32!TerminateProcess breakpoint and diagnose the issue from there.

Page 1 of 1 (6 items)
Microsoft Communities