MySQL Forums
Forum List  »  Performance

Re: Suddenly mysql server performance degraded
Posted by: Rick James
Date: November 26, 2015 10:01PM

Turn on the slowlog, lower long_query_time to 2, wait a day, run pt-query-digest, then show us the worst couple of queries. Also provide SHOW CREATE TABLE and EXPLAIN SELECT.

> One of my long query taking time in state "storing result in query cache".

SHOW VARIABLES LIKE 'query%';

Decrease query_cache_size to 50M if it is bigger than that.
Decrease query_cache_limit to 2M if it is bigger than that.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Suddenly mysql server performance degraded
1009
November 26, 2015 10:01PM


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.