?
Solved

MySQL : getting the most intensive/called/slow requests

Posted on 2011-10-06
4
Medium Priority
?
337 Views
Last Modified: 2012-05-12
Hi,

With MySQL (the community edition I guess, the one packaged in Debian and many other distros I think), what (free) tool do I have to check the performance?
I'd like to be able to get the most disk intensive requests, the ones reading too many lines, the requests called too many times (let say, a lot of times), that kind of top-tens. My goal is to highlight some bad requests and algorithms we've probably written in our application.
This way, we'll change some programs, create indexes where we need and so on...

I found some commercial tools (I don't remember the company name right now), but I don't think they're free.

In comparison with Oracle, I know I have all the information inside the database, and I can extract it. I don't think it's the same with MySQL

Regards,
0
Comment
Question by:mchkorg
  • 2
4 Comments
 
LVL 24

Accepted Solution

by:
mankowitz earned 2000 total points
ID: 36923869
Some of that can be accomplished by using the slow query log, see http://dev.mysql.com/doc/refman/5.5/en/slow-query-log.html
0
 
LVL 7

Author Comment

by:mchkorg
ID: 36924019
OK, I'll tell our "partner" [supposed to be] managing our database to tell them to activate it.
But I'd prefer to give them every configuration modification at the same time.

So, any other idea? (including or not an optional DB reconfiguration)
0
 
LVL 24

Expert Comment

by:johanntagle
ID: 36927900
Have the slow query log enabled first, then after at least one busy day (more would likely be better), ask for a copy.  Tune your queries and add indexes based on that.  Better if you have that covered before you move to server tuning.  After you've performed that, wait another few days, then ask for  the following:

1.  Copy of the slow query log
2.  Copy of my.cnf
3.  Output of "show variables" (this is just in case somebody put some setting that overrides that of my.cnf)
4.  Output of "show global status"

The combination of the above will help you formulate what configuration settings need to be changed.
0
 
LVL 7

Author Closing Comment

by:mchkorg
ID: 36955420
Thank you, with this, I have tons of awful requests to give to the development team.
I'm closing this question now as I don't event need further analysis right now. I'll check my.cnf and other variables later, when those awful requests and algorithms are corrected.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
Creating a Cordova application which allow user to save to/load from his Dropbox account the application database.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question