We have an issue with a server running particularly slow at times but the CPU never goes very high. A sysadmin has looked into this and said that at any one time there are a massive number of connections from the MySQL port of Server A - which is running fine - and Server B - the server with the issues. The main symptoms seen on Server B are very slow page load times, seen predominantly by an inital hang before the page does anything, and slow connection to the Shell. Its worth pointing out this is not website/application specific - not caused by Javascript or anything like that as we have the same application running on 3 or 4 other same-spec servers with no issues at all.
What i want to do is try and track down the exact nature of these MySQL connections between the 2 servers. So, what the source is, what the destination is, what the purpose is. Should i look to enable the (currently disabled) general log? Is there something else i can try? Both servers are running CentOS (one on 4.8 and one on 5.5) and both on latest builds of WHM/cPanel with latest stable PHP/Apache versions.
Thanks.