3

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

%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)。

这种情况下是按应用池名称搜索的,是不是应用池的空间造成的?

4

1 回答 1

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
 )
于 2013-06-21T13:45:47.510 回答