Jump to content

monitoring db health, finding problems and fixing them?


Recommended Posts

Our db is running into max connections every now and then and we're trying to figure out why.

 

I've been running the mysql administrator but don't totally understand what all the info means.

 

Can someone point in the right direction of some good resources to read up on?

 

Also some suggestions on what to do to figure out exactly what the problem is.

 

Current max connections is 150.

 

I'm not sure if it's better to increase the max connections or the different buffers.

 

Thanks.

 

 

Anyone?

 

Connection usage doesn't look to be more than 10%.

 

Traffic Ave: 110000

 

Number of SQL Queries: Ave: 19, Max: 166

 

Query Cache Hitrate: Ave. 54%

 

Key Buffer usually sits around 84M of 115M and average hitrate is 77%

 

 

Query Cache Hitrate seems low. Should I increase the cache?

I recently had the same problem, it was a combination of google hitting bad queries i had made ages ago like 150,000 times a day.

 

I removed order by rand() with the altenate FLOOR(), indexed all query joins , removed live count(*)  and just had totals coming from an updated table.

 

First place to look is bots hitting your database driven pages through awstats

thanks dreamwest.

 

so you didn't tweak any of the database config?

 

I'm guessing we probably have some old queries lying around but most of the frontend code has been revamped in the last 6 months. I have looked at the slow-queries log but most of from backend statistics queries that don't get run very often.

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.