Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

How To Determine What Part of Application is Hanging Up MySql Connecti

5:09 am on Apr 20, 2007 (gmt 0)

New User

10+ Year Member

joined:Jan 12, 2007
votes: 0

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


1:12 pm on Apr 22, 2007 (gmt 0)

New User

10+ Year Member

joined:Mar 12, 2007
votes: 0

Have you taken a look at the process list?

You could try to create different users for your different applications and then check the process list to see who has the most open connections.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members