MySQL Aborted_clients Aborted_connects state variables and Detailed

Aborted_clients and Aborted_connects state variables Detailed

 

By: grant customer QQ: 1033553122

 

 

State variable definitions

Aborted_clients

For failing to properly close the connection when the client caused the demise of interrupted connections

The number of connections that were aborted because the client died without closing the connection properly.

 

 

Aborted_connects

The number of connections MySQL server failed.

The number of failed attempts to connect to the MySQL server。

 

 

Reference links:

https://dev.mysql.com/doc/refman/5.5/en/server-status-variables.html

 

Numerical analysis of state variables

View variable values

SHOW GLOBAL STATUS LIKE 'Aborted_connects'

SHOW GLOBAL STATUS LIKE 'Aborted_clients'

 

Aborted_connects

If clients connect mysql server fails, the server will increase the value of Aborted_connect variable, every single failure, the variable value is incremented.

 

The following situations can cause Aborted_connect variable values ​​increase.

L client connection because there is no access to the database due to failure

l client connection because the wrong password cause of failure

L connection packet connection (connection packet) does not contain the correct information leads to failure

l connection packet acquisition time consuming excess connect_timeout system variable of a connection failure, i.e., connection timeout (see the value SHOW GLOBAL VARIABLES LIKE 'connect_timeout';

 

 

Aborted_clients

If the client successfully connected, but not in an appropriate way disconnected, or is interrupted, then the server will increase the value Aborted_clients state variables, plus 1 each, and record a message to the Aborted connection error log.

 

The following situations can cause Aborted_clients state variable value increases.

L Before the client exits without calling mysql_close ()

l Client "sleeping", or more than wait_timeout interactive_timeout set the time (unit: s) without initiating any requests to the server.

l client program terminates abruptly during data transmission.

 

Resulting in aborted connections or aborted clients other reasons

l   max_allowed_packetvalue of the state variables is too small, or the query need to consume memory greater than the memory already allocated to the mysqld. See  Section B.5.2.10, "Packet Too Large" .

 

l   Linux使用的Ethernet协议,包含半双工和全双工。有些Linux Ethernet驱动存在这个bug。You should test for this bug by transferring a huge file using FTP between the client and server machines. If a transfer goes in burst-pause-burst-pause mode, you are experiencing a Linux duplex syndrome. Switch the duplex mode for both your network card and hub/switch to either full duplex or to half duplex and test the results to determine the best setting.

 

l   线程类库存在问题导致读取中断。

 

l   TCP/IP配置错误。

 

l   Ethernets, hubs, switches, cables等故障,这些只能更换硬件。

 

参考链接:

https://dev.mysql.com/doc/refman/5.5/en/communication-errors.html

Guess you like

Origin www.cnblogs.com/shouke/p/11612185.html