MySQL Forums
Forum List  »  Performance

Re: Load avg is 65 and cpu is 100% on mysqld
Posted by: Aftab Khan
Date: June 24, 2012 04:37AM

>terrible ratio; you are better turning the QC off. >> You mean I should be turning off -> have_query_cache | YES ?

Yes please turn it off i.e.
SET GLOBAL query_cache_type=0;
(and add a line into mysql options file i.e. /etc/my.cnf)

Drop this index:
>KEY `BillingStatusIndex` (`billingstatus`),

Recreate following index:
>KEY `CircleRandomIndex` (`status`,`billingstatus`,`circle`),
i.e drop KEY `CircleRandomIndex`, add KEY `CircleRandomIndex`(`billingstatus`,`status`,`circle`);

And provide EXPLAIN output for the SELECTs before and after index changes:
EXPLAIN SELECT idsubscription,idkeyword,msisdn,subscribemode,billed,status,circle FROM subscription WHERE status = 'active' AND billingstatus = 'false' \G

>I increased the max_tmp_table_size to 3G. Now the disk tables are not increasing more. So load is a kinda gradual 0.4 as of now.. Still we might expect it to rise again. As mem is fully occupied on 64bit.

Looks like you are using big values for the connection buffers, so provide us SHOW GLOBAL VARIABLES/STATUS\G output for a review

Edited 5 time(s). Last edit at 06/24/2012 10:57AM by Aftab Khan.

Options: ReplyQuote

Written By
Re: Load avg is 65 and cpu is 100% on mysqld
June 24, 2012 04:37AM

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.