이 모니터는 응용 프로그램이 구성된 메모리 임계값을 초과하여 처음 상태로 되돌려질 때 기록되는 이벤트를 찾고 응용 프로그램 풀이 너무 자주(모니터 구성 기준) 처음 상태로 되돌아가는 경우 풀 상태를 경고로 변경합니다. 이것은 수동 초기화 모니터로, 자동으로 정상 상태로 전환되지 않습니다. 모니터를 정상 상태로 전환하려면 상태 탐색기를 사용하여 모니터를 초기화해야 합니다.
응용 프로그램 풀의 가상 또는 실제 메모리 사용이 구성된 제한에 도달하여 너무 자주 처음 상태로 되돌아갑니다. 이는 응용 프로그램 풀이 실행되고 있는 코드 내에 메모리 누수가 있음을 나타낼 수 있습니다.
이 모니터가 작동하는 방식은 구성된 메모리 사용 임계값(IIS 관리 도구 내에 구성) 도달로 인한 응용 프로그램 풀 삭제 이벤트의 수를 찾는 것입니다. 이 모니터에 대해 구성할 수 있는 두 개의 매개 변수가 있습니다. 첫 번째는 "발생 횟수"로, 모니터가 찾고 있는 이벤트가 구성된 시간 간격에 발생해야 하는 횟수입니다. 두 번째 매개 변수는 "시간(분)"으로, 모니터가 이벤트 발생을 찾는 시간 간격입니다.
응용 프로그램 풀이 실행되고 있는 코드 내에 메모리 누수가 있습니다.
물리 또는 가상 메모리 제한이 너무 낮게 설정되어 있습니다.
IIS 관리자를 사용하여 응용 프로그램 풀 제한 설정을 확인하거나 구성하려면:
시작, 제어판을 차례로 클릭한 후 관리 도구를 클릭합니다.
IIS(인터넷 정보 서비스) 관리자를 마우스 오른쪽 단추로 클릭하고 관리자 권한으로 실행을 선택합니다.
왼쪽의 연결 창에서 컴퓨터를 확장한 다음 컴퓨터 이름 아래에서 응용 프로그램 풀 폴더를 선택합니다.
간단히 보기에서 응용 프로그램 풀을 선택합니다. 작업 창에서 고급 설정을 선택합니다.
응용 프로그램 섹션 아래에서 응용 프로그램 풀 제한에 대한 설정을 확인하거나 구성합니다.
참고: 수동 초기화 모니터이므로 문제를 해결한 후 상태 탐색기에서 이 모니터의 상태를 초기화해야 합니다. 이렇게 하려면 모니터를 마우스 오른쪽 단추로 클릭하고 "상태 초기화" 메뉴 항목을 선택합니다. 모니터를 수동으로 초기화하지 않으면 정상 상태로 전환되지 않습니다.
Target | Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool | ||
Parent Monitor | System.Health.AvailabilityState | ||
Category | AvailabilityHealth | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Warning | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.Windows.InternetInformationServices.6.2.RepeatedEventLogManualReset2StateMonitorType | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool.MemoryLeak.Monitor" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Microsoft.Windows.InternetInformationServices.6.2.RepeatedEventLogManualReset2StateMonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool.MemoryLeak.Monitor_AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="IISCommon!Microsoft.Windows.InternetInformationServices.ApplicationPool"]/PoolID$</AlertParameter1>
<AlertParameter2>$Target/Host/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="PotentialMemoryLeakDetected" MonitorTypeStateID="RepeatedEventRaised" HealthState="Warning"/>
<OperationalState ID="Healthy" MonitorTypeStateID="ManualResetEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<RepeatedComputerName>$Target/Host/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</RepeatedComputerName>
<RepeatedLogName>System</RepeatedLogName>
<RepeatedExpression>
<And>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(5117|5077)$</Pattern>
</RegExExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-WAS</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Params/Param[2]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="IISCommon!Microsoft.Windows.InternetInformationServices.ApplicationPool"]/PoolID$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</RepeatedExpression>
<NumberOfSeconds>3600</NumberOfSeconds>
<NumberOfOccurrences>10</NumberOfOccurrences>
</Configuration>
</UnitMonitor>