How to use the IIS Debug Diagnostics tool to troubleshoot a memory leak in an IIS process (919790)
The information in this article applies to:
- Microsoft Internet Information Services version 6.0
- Microsoft Internet Information Services version 5.1
- Microsoft Internet Information Services 5.0
INTRODUCTIONA memory leak may occur in Microsoft Internet Information Services (IIS) when an IIS process consumes excessive memory. Inetinfo.exe, Dllhost.exe, and W3wp.exe are examples of IIS processes. IIS caches static content and dynamic content. An IIS process normally uses up to 50 percent of the available physical memory. This memory usage metric pertains to each IIS process, not to a total of all IIS processes. You can use this information and Performance Monitor to identify a memory problem. Additionally, the following symptoms may occur when an IIS process consumes excessive memory: - In Windows Task Manager, the Mem Usage column indicates that the process consumes excessive memory.
- In Performance Monitor, the difference increases between the Private Bytes counter and the Virtual Bytes counter of the Process object.
- In IIS 6.0, an IIS process uses up to 1.3 gigabytes (GB) of virtual memory. If memory recycling is enabled, an event is logged that resembles the following:Event Type: Information
Event Source: W3SVC Event Category: None Event ID: 1077 Date: Date Time: Time User: N/A Computer: ComputerName Description:
A worker process with process id of '1234' serving application pool 'DefaultAppPool' has requested a recycle because it reached its virtual memory limit. - If memory recycling is not enabled, an IIS process uses up to 1.3 GB of virtual memory and eventually stops responding. Then, an event is logged that resembles the following: Event Type: Warning
Event Source: W3SVC Event Category: None Event ID: 1009 Date: Date Time: Time User: N/A Computer: ComputerName Description: A process serving application pool 'DefaultAppPool' terminated unexpectedly. The process id was '1234'. The process exit code was '0xc0000005'.
For more information, see Help and Support Center at http://support.microsoft.com. - In IIS 5.0, an IIS process uses up to 1.3 GB of virtual memory and eventually stops responding. Then, an event is logged that resembles the following: Event Type: Error
Event Source: Service Control Manager Event Category: None Event ID: 7031 Date: Date Time: Time User: N/A Computer: ComputerName Description: The IIS Admin Service service terminated unexpectedly. It has done this 7 time(s). The following corrective action will be taken in 0 milliseconds: No action.
For more information, see Help and Support Center at http://support.microsoft.com.
Modification Type: | Major | Last Reviewed: | 9/22/2006 |
---|
Keywords: | kbinfo kbhowto KB919790 kbAudDeveloper kbAudITPRO |
---|
|
|
©2004 Microsoft Corporation. All rights reserved.
|
|