You can perform this procedure by using the user interface (UI), by running Appcmd.exe commands in a command-line window, by editing configuration files directly, or by writing WMI scripts.
To enable or disable worker process pinging for an application pool, use the following syntax:
appcmd set apppool /apppool.name:
string
/processModel.pingingEnabled:true|false
The variable string is the name of the application pool that you want to configure. For example, to enable worker process pinging for an application pool named Marketing, type the following at the command prompt, and then press ENTER:
appcmd set apppool /apppoolname:
Marketing
/processModel.pingingEnabled:true
By default, worker processes receive pings every thirty seconds, and must respond to a ping within ninety seconds. If you want to change the time between pings, you can configure the /processModel.pingInterval attribute, and to change the time in which an application pool must respond to a ping, you can configure the /processModel.pingResponseTime attribute. To configure the ping interval and ping response time, use the following syntax:
appcmd set apppool /apppool.name:
string
/processModel.pingInterval:
timeSpan
/processModel.pingResponseTime:
timeSpan
The variable string is the name of the application pool that you want to configure. The variable timeSpan is in the format d.hh:mm:ss, where d is the optional number of days, and hh:mm:ss is the number of hours, minutes, and seconds between health monitoring pings (in the /processModel.pingInterval attribute), and by which the worker process must respond (in the /processModel.pingResponseTime attribute). For example, to configure the ping interval for forty-five seconds and the ping response time for two minutes for an application pool named Marketing, type the following at the command prompt, and then press ENTER:
appcmd set apppool /apppool.name:
Marketing
/processModel.pingInterval:0.00:00:45 /processModel.pingResponseTime:0.00:02:00
For more information about Appcmd.exe, see Appcmd.exe (IIS 7).
The procedure in this topic affects the following configuration elements:
pingingEnabled attribute of the <processModel> element under <add> under <applicationPools>
For more information about IIS 7 configuration, see IIS 7.0: IIS Settings Schema on MSDN.
Use the following WMI classes, methods, or properties to perform this procedure:
-
ApplicationPool.ProcessModel.PingingEnabled property
For more information about WMI and IIS, see Windows Management Instrumentation (WMI) in IIS 7. For more information about the classes, methods, or properties associated with this procedure, see the IIS WMI Provider Reference on the MSDN site.