FIX: Memory leak in Rhs.exe after you configure the IIS 7.5 W3SVC service in a Windows Server 2008 R2 SP1 failover cluster

Article translations Article translations
Article ID: 2618982 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

After you use the Clusweb7.vbs script to configure the following service in a Windows Server 2008 R2 Service Pack 1 (SP1) failover cluster, a memory leak occurs in the Resource Hosting Subsystem (Rhs.exe) process:
  • Internet Information Services (IIS) 7.5 World Wide Web Publishing Service (W3SVC) 
Therefore, the Rhs.exe process continuously increases its memory usage.

When this issue occurs, an out of memory condition may occur in the clustered W3SVC service.

Notes
  • The Clusweb7.vbs script is described in the Microsoft Knowledge Base (KB) article 970759.
  • This issue does not occur when you use IIS 7.5 in a Windows Server 2008 R2 failover cluster.

CAUSE

This issue occurs because the memory of IAppHostElement objects is not released.

When the Clusweb7.vbs script runs, the GetAdminSection function allocates memory to merge one or more individual IAppHostElement objects. These objects are used at one or more locations in the path hierarchy. However, the memory for these objects is not released. Therefore, the memory leak that is described in the "Symptoms" section occurs when the LooksAlive function in the Clusweb7.vbs script calls the GetAdminSection function.

Note This issue occurs in only Windows Server 2008 R2 SP1 because the GetAdminSection function is internally introduced as a new feature in Windows Server 2008 R2 SP1.

RESOLUTION

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website:
http://support.microsoft.com/contactus/?ws=support
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, you must have IIS 7.5 installed on a computer that is running Windows Server 2008 R2 SP1.

Restart requirement

After you install this hotfix, you must restart the computer if IIS was running when you install this hotfix.

Hotfix replacement information

This hotfix does not replace a previously-released hotfix.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

For all supported x86-based versions of Windows 7
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Nativerd.dll7.5.7601.21825364,54422-Sep-201106:18x86
For all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Nativerd.dll7.5.7601.21825472,57622-Sep-201106:36x64
For all supported IA-64based versions of Windows Server 2008 R2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Nativerd.dll7.5.7601.21825982,52822-Sep-201104:08IA-64

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.

WORKAROUND

To work around this issue, restart the computer that is running the IIS service. 

MORE INFORMATION

To reproduce this issue on an IIS 7.5 server in a non-cluster environment, run the following script that is in the Clusweb7.vbs script:
SITES_SECTION_NAME = "system.applicationHost/sites" APPLICATION_POOLS_SECTION_NAME = "system.applicationHost/applicationPools" CONFIG_APPHOST_ROOT = "MACHINE/WEBROOT/APPHOST" Do LooksAlive() WScript.Sleep(500) Loop Function LooksAlive( ) Dim adminManager, index Set adminManager = CreateObject("Microsoft.ApplicationHost.AdminManager") Set sitesSection = adminManager.GetAdminSection(SITES_SECTION_NAME, CONFIG_APPHOST_ROOT) set configSection = adminManager.GetAdminSection(APPLICATION_POOLS_SECTION_NAME, CONFIG_APPHOST_ROOT) Set adminManager = nothing End Function
Note When you run this script, a memory leak occurs in the Wscript.exe process. You can use Task Manager to monitor the memory usage of the Wscript.exe process.

For more information about the Clusweb7.vbs script, click the following article number to view the article in the Microsoft Knowledge Base:

970759 Configuring IIS 7.0 World Wide Web Publishing Service in a Windows Server 2008 failover cluster

Note The article 970759 applies to also Windows Server 2008 R2.

A similar issue occurs when you use Internet Information Services (IIS) 7.0 in a Windows Server 2008 failover cluster. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

2163398  A memory leak occurs in the Rhs.exe process when you configure IIS 7.0 World Wide Web Publishing Service in a Windows Server 2008 failover cluster

Additional file information

Additional files for all supported x86-based versions of Windows 7
Collapse this tableExpand this table
File nameUpdate.mum
File versionNot Applicable
File size2,223
Date (UTC)22-Sep-2011
Time (UTC)10:37
PlatformNot Applicable
File nameX86_462dd60b1f5bc772889a3b62e21bccab_31bf3856ad364e35_6.1.7601.21825_none_5f143df9a4afbcd9.manifest
File versionNot Applicable
File size707
Date (UTC)22-Sep-2011
Time (UTC)10:37
PlatformNot Applicable
File nameX86_microsoft-windows-iis-sharedlibraries_31bf3856ad364e35_6.1.7601.21825_none_1370ada52c393fb7.manifest
File versionNot Applicable
File size346,260
Date (UTC)22-Sep-2011
Time (UTC)10:45
PlatformNot Applicable
Additional files for all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
Collapse this tableExpand this table
File nameAmd64_568e1849db5c2253ddc724a045ae4cd2_31bf3856ad364e35_6.1.7601.21825_none_49e8fe34c8d172b9.manifest
File versionNot Applicable
File size1,064
Date (UTC)22-Sep-2011
Time (UTC)10:38
PlatformNot Applicable
File nameAmd64_microsoft-windows-iis-sharedlibraries_31bf3856ad364e35_6.1.7601.21825_none_6f8f4928e496b0ed.manifest
File versionNot Applicable
File size346,266
Date (UTC)22-Sep-2011
Time (UTC)10:51
PlatformNot Applicable
File nameUpdate.mum
File versionNot Applicable
File size2,447
Date (UTC)22-Sep-2011
Time (UTC)10:38
PlatformNot Applicable
File nameWow64_microsoft-windows-iis-sharedlibraries_31bf3856ad364e35_6.1.7601.21825_none_79e3f37b18f772e8.manifest
File versionNot Applicable
File size337,680
Date (UTC)22-Sep-2011
Time (UTC)10:51
PlatformNot Applicable
Additional files for all supported IA-64based versions of Windows Server 2008 R2
Collapse this tableExpand this table
File nameIa64_02eb46367127669009589974fbfb15c1_31bf3856ad364e35_6.1.7601.21825_none_746a785c7b18c8c3.manifest
File versionNot Applicable
File size1,062
Date (UTC)22-Sep-2011
Time (UTC)10:37
PlatformNot Applicable
File nameIa64_microsoft-windows-iis-sharedlibraries_31bf3856ad364e35_6.1.7601.21825_none_1372519b2c3748b3.manifest
File versionNot Applicable
File size346,263
Date (UTC)22-Sep-2011
Time (UTC)10:38
PlatformNot Applicable
File nameUpdate.mum
File versionNot Applicable
File size1,868
Date (UTC)22-Sep-2011
Time (UTC)10:37
PlatformNot Applicable
File nameWow64_microsoft-windows-iis-sharedlibraries_31bf3856ad364e35_6.1.7601.21825_none_79e3f37b18f772e8.manifest
File versionNot Applicable
File size337,680
Date (UTC)22-Sep-2011
Time (UTC)10:38
PlatformNot Applicable

Properties

Article ID: 2618982 - Last Review: October 13, 2011 - Revision: 1.0
APPLIES TO
  • Microsoft Internet Information Services 7.5
Keywords: 
kbqfe kbhotfixserver kbfix kbautohotfix kbexpertiseadvanced kbsurveynew KB2618982

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com