MySQL Forums
Forum List  »  Performance

Re: Mysql seems to be bogged down
Posted by: Erin ONeill
Date: September 22, 2005 04:14PM

Hey Mike -
there are some pretty good db tuners looking at your problem. I'm a bit concerned with some of your my.cnf settings. I think upgrading your OS and APPs really will boost a lot of things but I'm afraid you'll use the same settings in your my.cnf file.

These concerned me a bit:
sort_buffer_size = 50M
read_buffer_size = 50M
join_buffer_size=50M

You have max connections set to 200. So let's ignore your global buffers for a second. With the thread buffers math you need the following RAM:
150(50+50+50) * 200 = 30 GB

You have how much ram?? I don't remember you saying you had 35 GB of ram??

I cut and pasted those settings above because I thought my eyes were fooling me. These are usually set MUCH lower (mine are around 1-2M).

I'm on MySQL 4.0 so I don't know if you can SET GLOBALS in 3.23?? if you can then:
SET GLOBAL sort_buffer_size = 2M;

otherwise you've got to change your my.cnf and flip the mysql server. :(

That could be why MySQL is stalling out -- you're using up all your RAM. Once you make those changes (be sure to set the slow_query_log while you're at it) then optimize your queries.

I love watching queries leave my slow_query_log! :)

have fun.
erin

Options: ReplyQuote


Subject
Views
Written By
Posted
2351
September 09, 2005 12:40PM
1455
A F
September 09, 2005 01:45PM
1699
September 09, 2005 09:32PM
1500
A F
September 12, 2005 07:50AM
2013
September 12, 2005 11:31AM
1358
September 12, 2005 05:13PM
1342
September 16, 2005 05:28PM
1516
September 20, 2005 09:54AM
Re: Mysql seems to be bogged down
1543
September 22, 2005 04:14PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.