MySQL Forums
Forum List  »  Performance

Re: Problematic Query identification at the time of load on server
Posted by: Aftab Khan
Date: June 01, 2012 03:25AM

you can use mysqldumpslow to parse MySQL slow query log file to get what quer(ies) have been stressing your database the most and optimize the slowest query first that runs often, try using this command and share its output with us:

mysqldumpslow -s t -t 10 /path/to/slow_query_log

http://dev.mysql.com/doc/refman/5.1/en/mysqldumpslow.html

You can try using pk-query-digest (percona toolkit)
http://www.percona.com/doc/percona-toolkit/2.1/pt-query-digest.html


Aftab

http://mysqlopt.blogspot.co.uk

Options: ReplyQuote




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.