MySQL Forums
Forum List  »  Performance

Re: Load avg is 65 and cpu is 100% on mysqld
Posted by: Rick James
Date: June 21, 2012 12:38AM

SHOW VARIABLES LIKE 'query%';

Don't set query_cache_size bigger than 50M; it efficiency declines.

Or maybe you should turn off the QC. The ratio hits/inserts is very low.

Then, look in the slowlog to see which queries are slow, and provide
* SHOW CREATE TABLE tbl\G -- engine, indexes
* SHOW TABLE STATUS LIKE 'tbl'\G -- sizes
* EXPLAIN SELECT ...\G -- clues of inefficiencies
* SHOW VARIABLES LIKE '%buffer%'; -- cache size
and surround them with [ code ] and [ / code ]

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Load avg is 65 and cpu is 100% on mysqld
1027
June 21, 2012 12:38AM


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.