How to use ADPLUS to _ONLY_ get MiniDumpOnSecond

后端 未结 1 1296
野的像风
野的像风 2021-01-28 08:18

For a production Win2003 web server, I\'d like to be able to allways log minidumps whenever the w3wp.exe processes crash...I\'ve read the documentation for ADPLUS, and have xcop

1条回答
  •  情深已故
    2021-01-28 09:01

    I played with the configuration file that can be attached with the -c flag...since i'm mostly interested in catching errors in my custom COM components, these settings create minidumps without fulldumps, and ignore CLR crashes, and don't full-dump on IISReset.

    To have this run all the time, create a scheduled task. From an admin prompt:

    schtasks /create /tn "Crash Dump Monitor w3wp" /tr "\"C:\Program Files\Debugging Tools for Windows (x86)\adplus.exe\" -c \"C:\Program Files\Debugging Tools for Windows (x86)\adplus_w3wp.xml\"" /sc ONSTART
    

    Save this file as C:\Program Files\Debugging Tools for Windows (x86)\adplus_w3wp.xml :

    
    
      
        Crash
        C:\Dumps
        w3wp.exe
      
      
        
          VOID
          VOID
          GN
          GN
        
        
          Log;Time;Stack;MiniDump;EventLog
          GN
          Log;Time;Stack;MiniDump;EventLog
          GN
        
        
          Log;Time;Stack;MiniDump;EventLog
          GN
          Log;Time;Stack;MiniDump;EventLog
          GN
        
        
          Log;Time;Stack;MiniDump;EventLog
          GN
          Log;Time;Stack;MiniDump;EventLog
          GN
        
        
          VOID
          Log;Time;Stack;MiniDump;EventLog
          GN
          GN
        
        
          VOID
          Log;Time;Stack;MiniDump;EventLog
          GN
          GN
        
        
          VOID
          Log;Time;Stack;MiniDump;EventLog
          GN
          GN
        
        
          VOID
          Log;Time;Stack;MiniDump;EventLog
          GN
          GN
        
        
          VOID
          Log;Time;Stack;MiniDump;EventLog
          GN
          GN
        
        
          VOID
          Log;Time;Stack;MiniDump;EventLog
          GN
          GN
        
        
          VOID
          Log;Time;Stack;MiniDump;EventLog
          GN
          GN
        
        
          VOID
          Log;Time;Stack;MiniDump;EventLog
          GN
          GN
        
        
          VOID
          Log;Time;Stack;MiniDump;EventLog
          GN
          GN
        
        
          VOID
          Log;Time;Stack;MiniDump;EventLog
          GN
          GN
        
        
          VOID
          Log;Time;Stack;MiniDump;EventLog
          GN
          GN
        
        
          Log;Time;
          Q
        
        
    
      
    
    
    

    Can anyone improve on this? Have I missed any important crashing exceptions?

    0 讨论(0)
提交回复
热议问题