We have a very large number of PHP scripts running on our server that do a variety of things. Lately I've noticed that when looking in PHPMyAdmin there are a large number of connections to our MySQL server just lingering.
Normally we're very good about closing connections when the querying in the script is done but obviously somewhere along the way we missed one or more.
I know which database the connection is being made to but that only narrows it down so much.
TL/DR I'm looking for an easy way to identify which script is maintaining a connection when it shouldn't be.