I'm running wordpress and smf forums on a site, both upgraded. For some reason, there are connections that aren't closing causing my entire server to grind to a hault. The support team at my colo basically said it's coming from bad code on one of my domains. But that was as far as they would go as they said they can't do anthing on the server. Their basic analysis was that code wasn't properly closing connections to the MYSQL.
When I shell in the command "c mysqld ¦ wc" it reports about 30 when the server is running smooth. The minute it crawls up to 50 +/-, the server basically stops responding. It will continue to climb, all the while not serving pages, but timing out.
How do I determine what is causing the closed connections? How do I go about finding the "bad" code?
I've got about 150k hits a day, and it just recently started. Server: 512 mb ram, 80 gig, 2.0 gz LAMP