本地缓存分配状态

Microsoft.Windows.BranchCache.ClientSideServiceBase.Monitor.RepublishFailedToAllocate (UnitMonitor)

此对象验证 BranchCache 能否分配本地缓存中的空间用于添加新内容供本地使用以及向其他客户端提供服务,如果无法分配空间,则生成健康状况警告。

Knowledge Base article:

摘要

此监视器验证 BranchCache 能否分配本地缓存中的空间以添加新内容,供本地使用或为其他客户端提供服务。如果 BranchCache 无法向本地缓存中添加内容,则客户端必须从内容服务器访问内容,而不能从分支机构本地访问,这将对性能产生负面影响。

原因

BranchCache 可能由于以下原因而无法分配本地缓存中的空间:

解决方案

重要说明!通常使用组策略配置 BranchCache 配置设置。如果使用组策略,请更正 BranchCache 的组策略设置中的问题。由于组策略设置通常会替代以下解决方案步骤中的手动设置,因此这些步骤仅在不使用组策略时有效。

单击以下任务可验证当前配置:显示 BranchCache 状态

若要增大缓存大小,请单击以下任务:设置缓存大小

您还可以使用管理权限打开命令提示符窗口,并在 netsh branchcache 上下文中使用 set cachesize 命令。

创建本地缓存的磁盘必须具有足够的可用空间以容纳本地缓存大小。

有关 netsh branchcache 上下文的详细信息,请参阅 Microsoft TechNet 上的 Windows Server 2008 R2 中适用于 BranchCache 的 Netsh 命令(页面可能为英文)

Element properties:

TargetMicrosoft.Windows.BranchCache.ClientSideServiceBase
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateFalse
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.SingleEventLogManualReset2StateMonitorType
RemotableTrue
AccessibilityPublic
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.BranchCache.ClientSideServiceBase.Monitor.RepublishFailedToAllocate" Accessibility="Public" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.BranchCache.ClientSideServiceBase" ParentMonitorID="Health!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.SingleEventLogManualReset2StateMonitorType" ConfirmDelivery="true">
<Category>PerformanceHealth</Category>
<OperationalStates>
<OperationalState ID="EventRaised" MonitorTypeStateID="EventRaised" HealthState="Warning"/>
<OperationalState ID="ManualResetEventRaised" MonitorTypeStateID="ManualResetEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Microsoft-Windows-BranchCache/Operational</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">11</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-BranchCache</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</Configuration>
</UnitMonitor>