Configuring Health Monitoring
Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1
Important
This feature of IIS 6.0 is available only when IIS is running in worker process isolation mode.
The World Wide Web Publishing Service (WWW service) monitors the health of worker processes by periodically pinging them to determine their responsiveness. If a worker process fails to respond to a ping, the WWW service terminates the worker process and creates another worker process as a replacement. Additionally, the WWW service maintains a communication channel to each worker process, and it can detect a drop in the communication channel, which indicates a worker process failure. When a worker process fails on its own accord, the WWW service starts another worker process in its place.
Procedures
Important
You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /user:Administrative_AccountName "mmc %systemroot%\system32\inetsrv\iis.msc".
To enable application pool health monitoring by using IIS Manager
In IIS Manager, expand the local computer, expand Application Pools, right-click the application pool, and then click Properties.
Click the Health tab, and select the Enable pinging check box.
In the box next to Ping worker process every (frequency in seconds):, type the number of seconds that you want to elapse between pings.
Click OK.
You can also configure the WWW service pinging feature and the frequency of the ping by setting the metabase properties PingingEnabled and PingInterval. Use the following procedures to configure these metabase properties from the command line.
Important
You must be a member of the Administrators group on the local computer to run scripts and executables. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run your script or executable as an administrator. At a command prompt, type runas /profile /user:MyComputer</STRONG>Administrator cmd to open a command window with administrator rights and then type cscript.exe ScriptName (include the script's full path and any known parameters).
To enable application pool health monitoring by using Adsutil.vbs
In the Run dialog box, type cmd, and then click OK.
At the command prompt, type:
- cscript %SystemDrive%\Inetpub\AdminScripts\adsutil.vbs set W3SVC/AppPools/ApplicationPoolName/PingingEnabled TRUE
To change the ping interval by using Adsutil.vbs
At the command prompt, type:
- cscript %SystemDrive%\Inetpub\AdminScripts\adsutil.vbs set W3SVC/AppPools/ApplicationPoolName/PingInterval n
In the preceding syntax, replace n with the number of seconds that you want to elapse between pings.
For more information about setting these metabase properties see PingingEnabled Metabase Property, PingInterval Metabase Property, and Using the Adsutil.vbs Administration Script.