I have a colleague who has been using PHP’s mysql_pconnect() without my knowing it. We have had a number of instances where connections were denied due to a large number of zombie connections (per our sys admin who is currently not available).
What is the best way from the command line to locate/identify the zombie processes. I have looked at the time columns in ps aux and top but I am not sure I am getting a complete picture.
Thanks.
From MySQL console
SHOW FULL PROCESSLIST;and look for these withSleepinCommandcolumn and high values inTime. ThenKILL