新聞中心
這篇文章給大家介紹MySQL Aborted_connects值不斷增大的可能性原因分析,內容非常詳細,感興趣的小伙伴們可以參考借鑒,希望對大家能有所幫助。
十余年的千陽網站建設經驗,針對設計、前端、開發(fā)、售后、文案、推廣等六對一服務,響應快,48小時及時工作處理。成都營銷網站建設的優(yōu)勢是能夠根據用戶設備顯示端的尺寸不同,自動調整千陽建站的顯示方式,使網站能夠適用不同顯示終端,在瀏覽器中調整網站的寬度,無論在任何一種瀏覽器上瀏覽網站,都能展現(xiàn)優(yōu)雅布局與設計,從而大程度地提升瀏覽體驗。創(chuàng)新互聯(lián)公司從事“千陽網站設計”,“千陽網站推廣”以來,每個客戶項目都認真落實執(zhí)行。
最近登錄數據庫,查看Aborted_clients的值,發(fā)現(xiàn)在不斷增大。
mysql(mdba@localhost:test 03:36:36)>show global status like 'abort%';
+------------------+---------+
| Variable_name | Value |
+------------------+---------+
| Aborted_clients | 5185350 |
| Aborted_connects | 1788 |
+------------------+---------+
2 rows in set (0.00 sec)
mysql(mdba@localhost:test 03:36:37)>show global status like 'abort%';
+------------------+---------+
| Variable_name | Value |
+------------------+---------+
| Aborted_clients | 5185351 |
| Aborted_connects | 1788 |
+------------------+---------+
2 rows in set (0.00 sec)
mysql(mdba@localhost:test 03:36:38)>show global status like 'abort%';
+------------------+---------+
| Variable_name | Value |
+------------------+---------+
| Aborted_clients | 5185352 |
| Aborted_connects | 1788 |
+------------------+---------+
2 rows in set (0.00 sec)
mysql(mdba@localhost:test 03:36:39)>show global status like 'abort%';
+------------------+---------+
| Variable_name | Value |
+------------------+---------+
| Aborted_clients | 5185355 |
| Aborted_connects | 1788 |
+------------------+---------+
2 rows in set (0.00 sec)
原因分析:
Aborted Clients值解釋:
The number of connections that were aborted because the client died without closing the connection properly.
當abort clients增大的時候意味著有客戶端成功建立連接,但是很快就斷開連接或者被終止了,這種情況一般發(fā)生在網絡不穩(wěn)定的環(huán)境中。
主要的可能原因有:
a)客戶端沒有主動關閉mysql連接mysql_close()。
b)wait_timeout設置很短被mysql干掉了。
c)客戶端由于某些原因被干掉了。
Aborted Connection值解釋:
The number of failed attempts to connect to the MySQL server.
當有大量的鏈接連接不上mysql的時候,這個數值就會激增。
主要的可能原因有:
a)沒有授權或者密碼不對。一般錯誤日志中會有如下報錯(Access denied for ‘user’@‘host’)
b)連接數滿了。一般報錯包含(too many connections)
c)超過鏈接時間限制,主要有這個參數控制connect_timeout(mysql默認是10s,基本除非網絡環(huán)境極端不好,一般不會超時。)
關于MySQL Aborted_connects值不斷增大的可能性原因分析就分享到這里了,希望以上內容可以對大家有一定的幫助,可以學到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到。
分享題目:MySQLAborted_connects值不斷增大的可能性原因分析
轉載注明:http://ef60e0e.cn/article/jioesj.html