I'm running a LAMP stack. When I go into phpmyadmin, I can see that there are quite a number of sleeping connections which probably should be closed. Is there a way, using either Apache or MySQL, to determine on which pages those connections are created?
views:
31answers:
1
+1
A:
You will need to log some details from PHP scripts, the following might help:
Then you can trace the hanging connections seen from phpmyadmin.
newtover
2010-04-22 21:48:29