This task content
• Summary • Generate dump files for diagnostics • Reference
This page
summary
summary
When you encounter a locked situation in Internet Information Services (IIS) 6.0, the application event log will appear like the following error message: Event Type: Warning
EVENT SOURCE: W3SVC-WP
Event Category: None
Event ID: 2262
Date: 7/29/2003
Time: 12:08:58 PM
User: N / A
COMPUTER:
Computername
Description: isapi 'c: /winnt/microsoft.net/framework/v1.1.4322/ASPNET_ISAPI.DLL' Reported Itself as unhealthy for the Following Reason: 'Deadlock Detected'.
An error message similar to the following is 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 PM
User: N / A
COMPUTER:
Computername
Description: a process serving application pool 'defaultapppool' Exceeded Time Limits During Shut Down.The Process ID WAS '2756'.
Back to top
Generating dump files for diagnostic programs IIS 6.0 has a new feature called "Isolate Process". This feature allows you to check it before the process is scheduled to be recycled. Isolate work processes can be used to attach a debugger in the process and generate a dump file for survey.
Note: This feature is not available when the process runs in the IIS 5.0 compatible mode.
Create a batch file, execute when a working process is isolated
1. Start the notepad. 2. Paste the following code into notepad: @IF "% _echo%" == "" echo off
SetLocal
SET TIMESTAMP =% DATE: ~ -9% _% Time%
SET TIMESTAMP =% TimeStamp: / = _%
SET TIMESTAMP =% TimeStamp :: = _%
Set timestamp =% TimeStamp:. = _%
Set timestamp =% TimeStamp: = _%
Set filename = c: /crash_%TimeStamp%.dmp
Set log = c: /log.txt
Set command = c: /debuggers/cdb.exe -c ".dump / o / MHF% filename%; Q" -p% 1
ECHO% Command%>% LOG%
% Command%
Endlocal3. Save the file as a file name .cmd. In this example, we name the file as action.cmd. You can also give the file from other names.
Note: You may have to modify the location of the debugger and wherever you want to generate the dump file.
Configuring Isolated Work Process Settings
1. Type the following command at the command prompt, then press ENTER:
CD / INETPUB / Adminscripts
2. To make the function of the isolated working process, you need to type the following command at the command prompt: adsutil.vbs set w3svc / appuprocess True3. At the command prompt, setup When the process is scheduled to be recycled executable file. For example, in this case, use the batch file created in "Creating a Batch File, Performing" in a working process ": adsutil.vbs set w3svc / appools / defaultApppool / orphannelnessexe" C: / action. CMD "Adsutil.vbs Set W3SVC / AppPools / DefaultAppPool / OrphanActionParams" %% 1 %% "
Note: Make sure the OrphaactExe option points to the location where the batch file created in "Creating a Batch File, Performs" when a working process is isolated. Also guarantees that the W3WP.exe process has read and execute permissions for this file.