linux 关闭句柄,主库出现大量的未关闭句柄,对应linux命令 : lsof -p 28314|grep CLOSE_WAIT...
你好,我的問題是這樣的,我使用otter同步A庫(主)和B庫數據(從),主庫最近一周每天都會出現
大量的未關閉句柄,第二天早上只能重啟數據庫A, 后來我把B庫改為主數據庫,A庫為從數據庫,這時候A庫好了,沒有出現未關閉句柄,但是B庫很快就出現大量未關閉的句柄,請幫忙分析一下 :
mysqld 28314 mysql 2640u IPv6 18315102 0t0 TCP linux:mysql->10.17.82.17:58290 (CLOSE_WAIT)
mysqld 28314 mysql 2642u IPv6 18315130 0t0 TCP linux:mysql->10.17.82.17:58293 (CLOSE_WAIT)
mysqld 28314 mysql 2644u IPv6 18315137 0t0 TCP linux:mysql->10.17.82.17:58296 (CLOSE_WAIT)
mysqld 28314 mysql 2646u IPv6 18315143 0t0 TCP linux:mysql->10.17.82.17:58299 (CLOSE_WAIT)
mysqld 28314 mysql 2648u IPv6 18315149 0t0 TCP linux:mysql->10.17.82.17:58302 (CLOSE_WAIT)
mysqld 28314 mysql 2650u IPv6 18315155 0t0 TCP linux:mysql->10.17.82.17:58305 (CLOSE_WAIT)
mysqld 28314 mysql 2652u IPv6 18315542 0t0 TCP linux:mysql->10.17.82.12:35888 (CLOSE_WAIT)
mysqld 28314 mysql 2654u IPv6 18315567 0t0 TCP linux:mysql->10.17.82.12:35891 (CLOSE_WAIT)
mysqld 28314 mysql 2656u IPv6 18315570 0t0 TCP linux:mysql->10.17.82.12:35894 (CLOSE_WAIT)
mysqld 28314 mysql 2658u IPv6 18315576 0t0 TCP linux:mysql->10.17.82.12:35897 (CLOSE_WAIT)
mysqld 28314 mysql 2660u IPv6 18315580 0t0 TCP linux:mysql->10.17.82.12:35900 (CLOSE_WAIT)
mysqld 28314 mysql 2662u IPv6 18315594 0t0 TCP linux:mysql->10.17.82.12:35903 (CLOSE_WAIT)
mysqld 28314 mysql 2664u IPv6 18315597 0t0 TCP linux:mysql->10.17.82.12:35906 (CLOSE_WAIT)
總結
以上是生活随笔為你收集整理的linux 关闭句柄,主库出现大量的未关闭句柄,对应linux命令 : lsof -p 28314|grep CLOSE_WAIT...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 层遇到select框时[收藏]
- 下一篇: linux下cache分析工具,cach