How to generate a dump file when ASP. NET is locked in IIS 6.0

Source: Internet
Author: User

Summary when you are locked in Internet Information Service (IIS) 6.0, an error message similar to the following will appear in the Application Event Log: Event Type: Warning
Event Source: W3SVC-WP
Event Category: None
Event ID: 2262
Date: 7/29/2003
Time: 12:08:58
User: N/
Computer:ComputerName
Description: isapi c: WINNTMicrosoft. NETFrameworkv1.1.4322aspnet _ isapi. dll reported itself as unhealthy for the following reason: Deadlock detected.

The following error message is displayed in the System Event Log: Event Type: Warning
Event Source: W3SVC
Event Category: None
Event ID: 1013
Date: 7/29/2003
Time: 12:09:34
User: N/
Computer:ComputerName
Description: A process serving application pool DefaultAppPool exceeded time limits during shut down. The process id was 2756.
Generating a dump file for the diagnosis program. IIS 6.0 has a new feature called "isolated working processes. This feature allows you to check the process to be recycled before it is terminated. Isolated working processes can be used to attach a debugging program to the process and generate a dump file for investigation.

Note:This feature is unavailable when the process is running in IIS 5.0 compatibility mode. Create a batch file and execute it when a worker process is isolated

1. Start notepad.
2. Paste the following code into notepad:
@if "%_echo%"=="" echo offsetlocal    set TIMESTAMP=%DATE:~-9%_%TIME%set TIMESTAMP=%TIMESTAMP:/=_%set TIMESTAMP=%TIMESTAMP::=_%set TIMESTAMP=%TIMESTAMP:.=_%set TIMESTAMP=%TIMESTAMP: =_%set FILENAME=c:crash_%TIMESTAMP%.dmpset LOG=c:log.txtset COMMAND=c:debuggerscdb.exe -c ".dump /o /mhf %FILENAME%;q" -p %1echo %COMMAND% > %LOG%%COMMAND%endlocal
3. Save the fileFile Name. Cmd. In this example, we name the file action. cmd. You can also give the file another name at will.
Note:You may have to modify the location of the debugging program and the location where you want to generate the dump file. Configure isolated working process settings
1. Type the following command at the command prompt and press ENTER:Cd Inetpubadminscripts
2. To make the function of an isolated working process available, enter the following command at a command prompt:
adsutil.vbs SET W3SVC/AppPools/DefaultAppPool/OrphanWorkerProcess TRUE
3. At the command prompt, set the executable files that run when the process is scheduled to be recycled. For example, in this case, use the batch files created in the "Create a batch file and execute it when a worker process is isolated" section:
adsutil.vbs SET W3SVC/AppPools/DefaultAppPool/OrphanActionExe "c:action.cmd"
adsutil.vbs SET W3SVC/AppPools/DefaultAppPool/OrphanActionParams "%%1%%"
Note:Make sure that the OrphanActionExe option points to the location of the batch file created in "Create a batch file and execute it when a worker process is isolated. Make sure that the W3wp.exe process has read and execute permissions on the file.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.