I have described my issue in detail here:
http://forums.mysql.com/read.php?24,...977#msg-297977
basically, I am having a mysql server which keeps piling up on it's unix domain socket connections.
here's a small example of netstat as it looks now (count about 80-100 connections paired with httpd):
Code:
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 3521428 12429/mysqld /tmp/mysql.sock
unix 3 [ ] STREAM CONNECTED 3789674 12429/mysqld /tmp/mysql.sock
unix 3 [ ] STREAM CONNECTED 3789673 25867/httpd
unix 3 [ ] STREAM CONNECTED 3788603 12429/mysqld /tmp/mysql.sock
unix 3 [ ] STREAM CONNECTED 3788602 25841/httpd
unix 3 [ ] STREAM CONNECTED 3788389 12429/mysqld /tmp/mysql.sock
This is indeed a mysql server issue as far as I managed to debug it but until a workaround/fix is found I need to have my server responsive and the first idea that comes to my mind is to somehow kill those stray connections. as described in the mysql topic mentioend above, killing from mysql will not work. I need to kill them from outside mysql.
I have setup a crontab script to kill and restart the mysql server when it cannot connect and it runs every 5 min. however this only lead to mysql being down sooner rather than later because in many cases just kill -9 and then service start mysql does not do the job (it's either part of the same issue of mysql or another issue). basically I need to manually kill mysqld instances a bunch of times until it's ok, OR, if that doesn't work, stop everything that is using mysql, wait a few minutes, and then start mysql. so I ditched that script and now I am manually restarting mysql server every ~ 24 hours.
so basically it's a pain. if I were to kill the stray connections however, I will not have to bother every day with restarting mysql. I hope.
so, any ideas?
thanks.