리소스 풀 메모리 사용

Microsoft.SQLServer.2014.Monitor.UserResourcePool.MemoryConsumption (UnitMonitor)

리소스 풀에 사용된 메모리 양이 지정된 리소스 풀의 메모리 내 테이블에 사용 가능한 메모리 비율로 표현되는 임계값 설정보다 큰 경우 모니터가 위험 상태를 보고하고 알림을 발생시킵니다.

Knowledge Base article:

요약

리소스 풀에 사용된 메모리 양이 지정된 리소스 풀의 메모리 내 테이블에 사용 가능한 메모리 비율로 표현되는 임계값 설정보다 큰 경우 모니터가 위험 상태를 보고하고 알림을 발생시킵니다.

메모리 액세스에 최적화된 데이터베이스에 매핑되는 경우 명명된 리소스 풀은 메모리 내 OLTP 엔진에 있는 여러 구조에 사용되는 내부 테이블을 포함하여 모든 메모리 액세스에 최적화된 테이블에 할당된 메모리를 추적합니다.

원인

SQL Server 메모리 내 OLTP는 SQL Server보다 더 많은 메모리를 SQL Server와 다른 방식으로 사용합니다. 메모리 내 OLTP를 위해 설치하고 할당한 메모리 양이 증가하는 요구를 충족시키기에 부족할 수 있습니다. 이 경우 메모리가 부족합니다.

자세한 내용은 다음 문서를 참조하십시오. 메모리 액세스에 최적화된 테이블이 있는 데이터베이스를 리소스 풀에 바인딩

해결 방법

메모리 부족 또는 메모리 부족 상태를 해결하려면 사용량을 줄여 기존 메모리를 확보하거나 더 많은 메모리를 메모리 내 테이블에 사용할 수 있게 해야 합니다. 가능한 수정 조치는 다음과 같습니다.

외부 리소스

메모리 내 OLTP의 메모리 관리 방법

재정의 가능한 매개 변수

이름

설명

기본값

사용

 

알림 생성

 

간격(초)

워크플로를 실행하는 반복 시간 간격(초)입니다.

300

샘플 수

상태가 변경되기 전 측정된 값이 임계값을 위반한 횟수를 나타냅니다.

6

스크립트 지연(밀리초)

이 매개 변수는 워크플로에서 실행되는 연속 T-SQL 쿼리 사이의 지연을 설정합니다. 대상 개체 수가 많은 경우 워크플로가 생성하는 사용 공간을 줄이는 데 도움이 될 수 있습니다. 이 매개 변수를 변경하려면 먼저 Microsoft 지원에 문의하십시오.

0

동기화 시간

24시간 형식으로 지정된 동기화 시간입니다. 생략될 수 있습니다.

 

임계값

수집된 값이 이 매개 변수와 비교됩니다.

90

제한 시간(초)

워크플로를 닫고 실패로 표시하기 전에 워크플로를 실행할 수 있는 시간을 지정합니다.

180

Element properties:

TargetMicrosoft.SQLServer.2014.UserResourcePool
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SQLServer.2014.MonitorType.UserResourcePool.MemoryConsumption
RemotableTrue
AccessibilityPublic
Alert Message
MSSQL 2014: 메모리 내 OLTP: 리소스 풀이 너무 많은 메모리를 사용 중입니다.
리소스 풀 "{0}"이(가) 너무 많은 메모리를 사용 중입니다.
서버의 전체 실제 메모리: {6}MB
SQL 인스턴스의 대상 메모리: {1}MB
풀 메모리: {2}MB
메모리 내 테이블에 사용 가능한 메모리: {3}MB({4}\%)
현재 사용 중인 메모리: {5}MB
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SQLServer.2014.Monitor.UserResourcePool.MemoryConsumption" Target="SQL2014Core!Microsoft.SQLServer.2014.UserResourcePool" ParentMonitorID="SystemHealth!System.Health.PerformanceState" TypeID="Microsoft.SQLServer.2014.MonitorType.UserResourcePool.MemoryConsumption" Accessibility="Public" Enabled="true" Remotable="true" Priority="Normal" ConfirmDelivery="true">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2014.Monitor.UserResourcePool.MemoryConsumption.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.ResourcePool"]/Name$</AlertParameter1>
<AlertParameter2>$Data/Context/Property[@Name='MemoryForSQLInstanceMB']$</AlertParameter2>
<AlertParameter3>$Data/Context/Property[@Name='PoolAvailableMemoryMB']$</AlertParameter3>
<AlertParameter4>$Data/Context/Property[@Name='PoolFreeMemoryMB']$</AlertParameter4>
<AlertParameter5>$Data/Context/Property[@Name='PoolFreeMemoryPercent']$</AlertParameter5>
<AlertParameter6>$Data/Context/Property[@Name='PoolUsedMemoryMB']$</AlertParameter6>
<AlertParameter7>$Data/Context/Property[@Name='TotalMemoryOnTheServerMB']$</AlertParameter7>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ErrorState" MonitorTypeStateID="ErrorState" HealthState="Error"/>
<OperationalState ID="SuccessState" MonitorTypeStateID="SuccessState" HealthState="Success"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>300</IntervalSeconds>
<SyncTime/>
<ServerName>$Target/Host/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ServerName>
<SqlInstanceName>$Target/Host/Host/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.ServerRole"]/InstanceName$</SqlInstanceName>
<Value>$Data/Property[@Name='PoolUsedMemoryPercent']$</Value>
<PoolID>$Target/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.ResourcePool"]/PoolID$</PoolID>
<Threshold>90</Threshold>
<TimeoutSeconds>180</TimeoutSeconds>
<ScriptDelayMsec>0</ScriptDelayMsec>
<NumSamples>6</NumSamples>
</Configuration>
</UnitMonitor>