Select the product you need help with
How to modify Application Pool Recycling events in IIS 6.0Article ID: 332088 - View products that this article applies to. This article was previously published under Q332088 On This PageSUMMARYThis step-by-step article describes how to set the flags
that control the LogEventOnRecycle property in the Internet Information Services (IIS) 6.0 metabase.
The LogEventOnRecycle metabase property is a DWORD that has various bit flags for what type of recycling will generate an entry in the system event log. When you troubleshoot an ISAPI extension that implements the new server support function REPORT_UNHEALTHY, you may find it helpful to log an event for each instance that the ISAPI reports itself unhealthy. Important This is a feature of application pools, and therefore applies only to worker process isolation mode. Enumerating the flagsImportant This article contains information about how to edit the metabase. Before you edit the metabase, verify that you have a backup copy that you can restore if a problem occurs. For information about how to do this, see the "Configuration Backup/Restore" Help topic in Microsoft Management Console (MMC).You can enumerate Application Pools Recycling event flag settings by means of a script, such as the Adsutil.vbs utility. To enumerate the properties and flags that are listed in the IIS metabase for Application Pools, and to view their current value, follow these steps:
Explanation of flagsCollapse this table
Setting the flagsYou can set the flags by using Adsutil.vbs. To set the AppPoolRecycleMemory flag to false for the default Application Pool, follow these steps:
LogEventOnRecycle http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/6f43da84-38b0-422b-aa2b-195643d05d22.mspx
(http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/6f43da84-38b0-422b-aa2b-195643d05d22.mspx)
Event log entriesThe following events appear in the Event log.Collapse this table
TroubleshootingInformation about the errors you may experience when setting these flags is in the documentation that is included with the product. For the same information online, visit the following TechNet Web site:Code examples to configure Metabase properties http://technet2.microsoft.com/windowsserver/en/technologies/featured/iis/default.mspx
(http://technet2.microsoft.com/windowsserver/en/technologies/featured/iis/default.mspx)
REFERENCESFor more information about application pools, see the
documentation at the following TechNet Web site: How application pools work (IIS 6.0) For more information about recycling worker processes, see the
documentation at the following TechNet Web site:http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/67e39bd8-317e-4cf6-b675-6431d4425248.mspx
(http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/67e39bd8-317e-4cf6-b675-6431d4425248.mspx)
Recycling worker processes (IIS 6.0) http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/1652e79e-21f9-4e89-bc4b-c13f894a0cfe.mspx
(http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/1652e79e-21f9-4e89-bc4b-c13f894a0cfe.mspx)
PropertiesArticle ID: 332088 - Last Review: March 13, 2008 - Revision: 10.1
| Article Translations |


Back to the top








