Tucked away in the IIS manager is an UI screen to configure the Events that get logged when an application pool is recycled.
When you right click on the application pool and choose Recycling you get to the screen where you configure the Recycling Conditions. When you click ‘Next’ you will get a screen where you can configure the events that are logged when recycling happens.
You can also set these settings from the Advanced Settings of an application pool
On IIS 6.0 you had to configure this using the adsutil.vbs script (or directly edit the metabase.xml) ref: http://support.microsoft.com/kb/332088
Also the Event Viewer on Windows 2008 has been improved and you can now configure it to send emails whenever an event is triggered.
As a web administrator you might want to keep a tab on the Runtime recycling events. For example the Unhealthy ISAPI recycling usually indicates a web application ‘hang’ because of which it is being recycled. From the IIS Manager you can turn on the Runtime recycling so that those events are logged in the event viewer. Then from the Event Viewer you can attach a task to those events and configure it to send out an email. So every time there is an application pool recycle you get automatically notified via email.
PingBack from http://www.anith.com/?p=16952
What event ID is generated when the app pool recycles?