현재 중단되어 있는 MySQL 서버 연결 비율입니다. 연결이 중단된 원인은 클라이언트 응용 프로그램의 로그인 자격 증명이 올바르지 않거나 제한 시간이 초과되었기 때문일 수 있습니다. 이 모니터는 상태 변수 ‘Aborted_connects’의 중단된 연결 수를 상태 변수 ‘Connections’로 나눕니다.
비정상 상태는 MySQL 서버의 현재 중단된 연결 비율이 높음을 나타냅니다. 다음과 같은 문제가 원인일 수 있습니다.
데이터베이스에 연결할 때 올바르지 않은 권한이 사용됨
클라이언트 프로그램이 종료되기 전에 연결을 닫지 않음
연결 패킷이 전역 변수 connect_timeout보다 더 오래 걸림
연결 패킷 형식이 잘못됨
연결 패킷이 전역 변수 max_allowed_packet보다 더 큼
잘못 구성된 TCP/IP
높은 중단된 연결을 해결하려면 다음과 같은 옵션 중 하나 이상을 선택하십시오.
클라이언트 프로그램이 이용할 권한 결정
클라이언트 프로그램에서 mysql 연결이 제대로 종료되었는지 확인
전역 변수 connect_timeout 증가
전역 변수 max_allowed_packet 증가
기본 구성
매개 변수 | 기본값 |
경고 임계값 | 15보다 큼 |
오류 임계값 | 30보다 큼 |
샘플 수 | 3 |
모든 인스턴스나 특정 인스턴스 또는 그룹에 대해 위에서 정의한 매개 변수 값을 변경하는 데 재정의를 사용할 수 있습니다.
Target | Microsoft.MySQLServer.ManagedServer.Unix | ||
Parent Monitor | Microsoft.MySQLServer.ConnectionsPerformanceRollup | ||
Category | PerformanceHealth | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | MatchMonitorHealth | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.Oss.WSManEnumeration.GreaterThanThreshold.ThreeState.MonitorType | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="Microsoft.MySQLServer.ManagedServer.Unix.AbortedConnectionPct.Monitor" Accessibility="Public" Target="Microsoft.MySQLServer.ManagedServer.Unix" TypeID="Oss!Microsoft.Oss.WSManEnumeration.GreaterThanThreshold.ThreeState.MonitorType" Enabled="onStandardMonitoring" ParentMonitorID="Microsoft.MySQLServer.ConnectionsPerformanceRollup">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.MySQLServer.ManagedServer.Unix.AbortedConnectionPct.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Value$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState HealthState="Success" MonitorTypeStateID="StatusOK" ID="UnderThreshold"/>
<OperationalState HealthState="Warning" MonitorTypeStateID="StatusWarning" ID="OverWarningThreshold"/>
<OperationalState HealthState="Error" MonitorTypeStateID="StatusError" ID="OverErrorThreshold"/>
</OperationalStates>
<Configuration>
<Interval>300</Interval>
<TargetSystem>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/MySQL_ServerStatistics?__cimnamespace=root/mysql</Uri>
<WSManFilter/>
<ObjectName>MySQL Server</ObjectName>
<CounterName>Aborted Connection Pct</CounterName>
<InstanceXPath>/DataItem/WsManData/*[local-name(.)='MySQL_ServerStatistics']/*[local-name(.)='InstanceID']</InstanceXPath>
<InstanceName>$Target/Property[Type="Microsoft.MySQLServer.Installation"]/InstanceID$</InstanceName>
<Value>$Data/WsManData/*[local-name(.)='MySQL_ServerStatistics']/*[local-name(.)='AbortedConnectionPct']$</Value>
<WarningThreshold>15</WarningThreshold>
<ErrorThreshold>25</ErrorThreshold>
<NumSamples>3</NumSamples>
</Configuration>
</UnitMonitor>