Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

The ASP.NET worker process restarts before the timeout setting has lapsed


View products that this article applies to.

Symptoms

The Microsoft ASP.NET worker process Aspnet_wp.exe restarts or is recycled before the timeout setting that is specified in the ScriptTimeout property, the Session.Timeout attribute, the executionTimeout property, or another setting, has lapsed. The following error message is logged in the application event log:

Event Type: Error
Event Source: ASP.NET 1.0.3705.0
Event Category: None
Event ID: 1003
Date: 4/24/2002
Time: 6:18:23 PM
User: N/A
Computer: <ComputerName>
Description: aspnet_wp.exe (PID: Number) was recycled because it was suspected to be in a deadlocked state. It did not send any responses for pending requests in the last 180 seconds.

↑ Back to the top


Cause

This problem occurs when the ASP.NET worker process has been idle for the duration that is specified in the responseDeadlockInterval configuration setting in the Machine.config file. This behavior causes the deadlock detection mechanism to restart the worker process. Then, the deadlock detection mechanism writes an error message in the application event log that indicates that the restart occurred because of a suspected deadlock state. For example, a slow write to the client may take longer than the value of the responseDeadlockInterval configuration setting in the Machine.config file.

↑ Back to the top


Resolution

In the <processModel> section of the Machine.config file, increase the responseDeadlockInterval configuration setting. Set a maximum value that is at least the same as your longest application-level timeout setting. You may also set the responseDeadlockInterval configuration setting to Infinite. This configuration setting affects all ASP.NET applications that run on the server. The Machine.config file is typically located in the C:\WindowsFolder\Microsoft.NET\Framework\Version\CONFIG folder.

Note Version is the version number of the Microsoft .NET Framework that you installed on your server. WindowsFolder is your Microsoft Windows folder. Typically, your Microsoft Windows folder is C:\Windows\.

To increase the responseDeadlockInterval configuration setting, follow these steps:
  1. Click Start, click Run, type notepad, and then click OK.
  2. In Notepad, click File, click Open, locate the C:\WindowsFolder\Microsoft.NET\Framework\Version\CONFIG folder, click All files in the Files of type list, click Machine.config in the file list, and then click OK.
  3. Locate the responseDeadlockInterval configuration setting in the Machine.config file, and then change the value to the one that you want.
  4. Save the Machine.config file, and then close Notepad.
The following code is the <processModel> section of the Machine.config file where the responseDeadlockInterval configuration setting appears:
<processModel enable="true|false"
              timeout="hrs:mins:secs|Infinite" 
              idleTimeout="hrs:mins:secs|Infinite"
              shutdownTimeout="hrs:mins:secs|Infinite"
              requestLimit="hrs:mins:secs|Infinite"
              requestQueueLimit="num|Infinite"
              restartQueueLimit="num|Infinite"
              memoryLimit="percent"
              cpuMask="num"
              webGarden="true|false"
              userName="username"
              password="password"
              logLevel="All|None|Errors"
              clientConnectedCheck="hrs:mins:secs|Infinite"
              responseDeadlockInterval="hrs:mins:secs|Infinite"
              responseRestartDeadlockInterval="hrs:mins:secs|Infinite"
              comAuthenticationLevel="Default|None|Connect|Call| 
                                      Pkt|PktIntegrity|PktPrivacy"
              comImpersonationLevel="Default|Anonymous|Identify|
                                     Impersonate|Delegate"
              maxWorkerThreads="num"
              maxIoThreads="num"/>

↑ Back to the top


Keywords: KB841557, kbprb

↑ Back to the top

Article Info
Article ID : 841557
Revision : 4
Created on : 7/7/2004
Published on : 7/7/2004
Exists online : False
Views : 305