关闭

Aborted_connects很高分析

1603人阅读 评论(0) 收藏 举报
分类:
mysqladmin ext | grep Abort
| Aborted_clients                | 44458        |
| Aborted_connects               | 546857        |

最近发现服务器这个两个值很高,没过几分钟就增长几十,查看手册

If a client successfully connects but later disconnects improperly or is terminated, the server increments theAborted_clients status variable, and logs an Aborted connection message to the error log. The cause can be any of the following:

If a client is unable even to connect, the server increments the Aborted_connects status variable. Unsuccessful connection attempts can occur for the following reasons:

跟踪--使用tcpdump

tcpdump -s 1500 -w tcp.out port 3306
开另一个窗口,tail -f tcp.out | strings   可以看到有连接错误信息

strings tcp.out > tcp.txt
vim tcp.txt

可以看到具体的信息

Host 'XXX.XX.XX.XXX' is not allowed to connect to this MySQL server
Access denied for user 'root'@'XXX.XX.XX.XXX' (using password: YES)0N
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:79219次
    • 积分:1372
    • 等级:
    • 排名:千里之外
    • 原创:35篇
    • 转载:170篇
    • 译文:0篇
    • 评论:5条
    最新评论