appcmd禁用空闲超时错误

时间:2013-06-12 21:34:54

标签: appcmd

我尝试使用以下命令禁用应用程序池超时:

%systemroot%\ system32 \ inetsrv \ appcmd set config / section:applicationPools / [name ='OPS Apps - v4.0 Integrated x86'] .processModel.idleTimeout:0.00:00:00

但它有错误:

无法处理输入:参数'v4.0'必须以/或 - 开头(HRESULT = 80070057)。

在这种情况下,它是按应用程序池名称搜索的,是否是由应用程序池中的空间引起的?

1 个答案:

答案 0 :(得分:10)

同时您可以尝试使用特定的apppool语法:

AppCmd.exe set apppool "OPS Apps - v4.0 Integrated x86" /processModel.idleTimeout:00:00:00

所有支持的属性都是:

>AppCmd.exe set apppool "OPS Apps - v4.0 Integrated x86" /?

-name
-queueLength
-autoStart
-enable32BitAppOnWin64
-managedRuntimeVersion
-managedRuntimeLoader
-enableConfigurationOverride
-managedPipelineMode
-CLRConfigFile
-passAnonymousToken
-startMode
-processModel.identityType
-processModel.userName
-processModel.password
-processModel.loadUserProfile
-processModel.setProfileEnvironment
-processModel.logonType
-processModel.manualGroupMembership
-processModel.idleTimeout
-processModel.maxProcesses
-processModel.shutdownTimeLimit
-processModel.startupTimeLimit
-processModel.pingingEnabled
-processModel.pingInterval
-processModel.pingResponseTime
-recycling.disallowOverlappingRotation
-recycling.disallowRotationOnConfigChange
-recycling.logEventOnRecycle
-recycling.periodicRestart.memory
-recycling.periodicRestart.privateMemory
-recycling.periodicRestart.requests
-recycling.periodicRestart.time
-recycling.periodicRestart.schedule.[value='timespan'].value
-failure.loadBalancerCapabilities
-failure.orphanWorkerProcess
-failure.orphanActionExe
-failure.orphanActionParams
-failure.rapidFailProtection
-failure.rapidFailProtectionInterval
-failure.rapidFailProtectionMaxCrashes
-failure.autoShutdownExe
-failure.autoShutdownParams
-cpu.limit
-cpu.action
-cpu.resetInterval
-cpu.smpAffinitized
-cpu.smpProcessorAffinityMask
-cpu.smpProcessorAffinityMask2
 )