Help and Support

Clients receive a "service unavailable" error message in their Web browsers when you run many application pools under separate identities in IIS

Article ID:831135
Last Review:December 3, 2007
Revision:2.1
Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 (http://support.microsoft.com/kb/256986/) Description of the Microsoft Windows registry

SYMPTOMS

When you run multiple application pools under different custom identities in Microsoft Internet Information Services (IIS), some worker processes may not initialize correctly. When this issue occurs, clients may receive a "service unavailable" error message when they try to visit Web pages that those application pools host. Additionally, the following warning message may be logged in the system log:

Event Type: Warning
Event Source: W3SVC
Event Category: None
Event ID: 1009
Description:
A process serving the application pool 'poolname' terminated unexpectedly. The process id was 'processid'. The process exit code was '0x80'.

This issue does not occur when you use the three predefined identities. The predefined identities are Network Service, Local Service, and Local System.

Note This issue occurs in both the 32-bit version of IIS and the 64-bit version of IIS.

Back to the top

CAUSE

Together with each worker process that IIS creates under a separate identity, the system creates a new desktop object by allocating memory from the configured desktop heap. This issue occurs because, when that heap has been exhausted, IIS cannot create more worker processes. Clients then receive the "service unavailable" error message in their Web browsers when they try to visit Web sites that those application pools host.

Back to the top

RESOLUTION

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To resolve this issue, add the UseSharedWPDesktop registry key to your computer that is running IIS. This registry key permits all worker processes to run in one shared desktop, regardless of their worker process identities.

To add the UseSharedWPDesktop registry key:
1.Click Start, click Run, type regedit, and then click OK.
2.Locate the following registry key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC
3.Right-click Parameters, point to New, and then click DWORD Value.
4.Type UseSharedWPDesktop.
5.Set the value for this new key to 1.
6.Quit Registry Editor, and then restart IIS.

Back to the top

STATUS

This behavior is by design.

Back to the top


APPLIES TO
Microsoft Internet Information Services 6.0

Back to the top

Keywords: 
kbprb KB831135

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Contact Microsoft
    Phone Numbers, Support Options and Pricing, Online Help, and more.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.