May 25, 2012

Post: Troubleshooting MySQL Memory Usage

get fancy graph quickly you can use this simple script: while true do date >> ps.log ps aux | grep mysqld >> ps.log… as you can query temporary tables too: mysql> select sum(data… (both in memory and not): mysql> select * from information_schema.global_… like valgrind are too slow to run in production….

Post: Slow Query Log analyzes tools

Slow Query Log – Especially after the changes to log all queries slow query log may be growing too rapidly to follow, so we implemented slow query log filter (based on parse_mysql_slow_log…but it surely did not get as much battle testing as rest of MySQL Server. Good thing is – you do not have to run…

Post: MySQL Slow query log in the table

As of MySQL 5.1 get MySQL slow query log logged in mysql.slow_log table instead of the file as you had in previous … time does not store fractions of the second. Today I’ve got some time to play with table based slow query log in production… as this would allow to aggregate log entirely in SQL finding most frequent slow query types or queries which load server the most. The…

Post: Identifying the load with the help of pt-query-digest and Percona Server

get started. Before We Start! But before we start, make sure you have enabled slow query loggingMySQL server, you would see an entry like this in the slow query log: # Time: 111229 3:02:26 # User@Host: msandbox[msandbox] @ localhost [] # Query

Post: Does Slow query log logs all slow queries ?

MySQL Slow query log to log all slow queries to catch problematic queries or for audit purposes. In fact however not all the queries are logged. I already mentioned mysql slave queries are not logged

Post: Logging MySQL queries from the client instead of the server

slow query log” is the single most valuable way to examine query execution on your MySQL server. Queries are loggedlog the queries is that it might not log everything, such as superfluous ‘ping’ commands. Another option is to make the client connector log the queries

Post: Figuring out what limits MySQL Replication

MySQL with slow query log with microsecond resolution so I could check exactly which update queries take most time to execute. Unfortunately it did not

Post: Be careful rotating MySQL logs

logging of all queries as “slow queries” using the patch or MySQL 5.1 you can get log file to grow huge. Same may happen with general log file. In some cases we’ve got log… also good idea to hook up log rotate to take care of MySQL logs so you would not need to cleanup them manually. In…

Post: Reasons for MySQL Replication Lag

… hard drive getting RAID in degraded mode could be one common example. Sometimes it is not fault …replication traffic regularly with mk-query-digest (Percona Server marks Slave Thread in slow query log so it is easy… MySQL is doing to IO going to devices from OS standpoint. If this is external and not

Post: How Percona does a MySQL Performance Audit

…/slow.log By default, this outputs the top 10 most expensive queries, in total execution time. By the way, the slow query logs in the stock MySQLnot possible to use a patched binary, we can use MySQL Proxy, packet sniffing, or other techniques to get more information than the slow log