打印后台处理程序:检查 Windows 资源

Microsoft.Windows.Server.10.0.PrintServer.PrintSpoolerService.PrintSpoolerStatus.System.CheckWindowsresources.EventBased.UnitMonitor (UnitMonitor)

检查 Windows 资源。

Knowledge Base article:

摘要

Windows 打印无法为操作分配足够的资源或正在处理升级。无需即时操作。

配置

监视器采用单个配置参数,可控制启用“Microsoft-Windows-PrintService/Admin 和 Microsoft-Windows-PrintService/Operational”事件日志时是否应监视“打印后台处理程序”并重启事件日志服务。默认情况下,仅当启用“Microsoft-Windows-PrintService/Admin 和 Microsoft-Windows-PrintService/Operational”日志记录时才监视打印后台处理程序监视器。

解决方法

如果问题仍存在,请确定计算机的系统资源(如 CPU 资源、磁盘 I/O 性能或内存)是否不足。

若要确定导致系统资源不足的原因,您可以使用可靠性和性能监视器生成系统诊断报告,也可以使用资源监视器来(实时)确定消耗过多系统资源的那些应用程序或服务。

若要生成系统诊断报告(此报告将显示收集了一分钟的系统信息),请使用下一部分“生成系统诊断报告”中所述的过程。若要使用资源监视器对系统资源进行实时监视,请使用“启动资源监视器”部分中所述的过程。

要执行这些过程,必须拥有“管理员”成员身份,或者已向你委派了适当的权限。

生成系统诊断报告

若要收集一分钟的系统信息并生成系统诊断报告,请执行以下操作:

启动资源监视器

若要启动资源监视器,请执行以下操作:

重要提示:在生成系统诊断报告时,资源监视器将停止收集信息。若要在完成系统诊断报告后开始收集信息,请单击“在监视器中启动”。

Element properties:

TargetMicrosoft.Windows.Server.10.0.PrintServerRole
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledFalse
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.2SingleEventLog2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
打印后台处理程序状态警报:检查 Windows 资源
{0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.10.0.PrintServer.PrintSpoolerService.PrintSpoolerStatus.System.CheckWindowsresources.EventBased.UnitMonitor" Accessibility="Public" Enabled="false" Target="Microsoft.Windows.Server.10.0.PrintServerRole" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="true">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.10.0.PrintServer.PrintSpoolerService.PrintSpoolerStatus.System.CheckWindowsresources.EventBased.UnitMonitor.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Negative" MonitorTypeStateID="FirstEventRaised" HealthState="Warning"/>
<OperationalState ID="Success" MonitorTypeStateID="SecondEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<FirstComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</FirstComputerName>
<FirstLogName>Microsoft-Windows-PrintService/Admin</FirstLogName>
<FirstExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-PrintService</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(362|369)$</Pattern>
</RegExExpression>
</Expression>
</And>
</FirstExpression>
<SecondComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</SecondComputerName>
<SecondLogName>Microsoft-Windows-PrintService/Operational</SecondLogName>
<SecondExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-PrintService</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(312|313)$</Pattern>
</RegExExpression>
</Expression>
</And>
</SecondExpression>
</Configuration>
</UnitMonitor>