…easier to understand which of the applications were responsible for memory allocation. If you figured out it… are implicit MEMORY tables which are allocated for query execution, which size can be controlled by tmp…to detect memory leaks like valgrind are too slow to run in production. So the best …
Post: Optimizing slow web pages with mk-query-digest
… – I had a slow query log (captured with long_query_time=0 and all the eXtra benefits from Percona slow query log patch), I knew… impact to this page response time. I can also convert that into a slow query log that lists all the queries that were executed during this session in the order they were executed: mk-query-digest…
Post: What do we optimize with mk-query-digest ?
… to query itself – general system overload, row level locks, table locks all could cause query response time to be unreasonable. If Slowest query is not interactive query, for example part of a… responsible for large portion of response time without any slow queries. We’ve seen pages which take 10.000, 20.000 and even more queries…
Post: Identifying the load with the help of pt-query-digest and Percona Server
… have enabled slow query logging and set a low enough value for long_query_time. We normally use a value of long_query_time… pt-query-digest Using pt-query-digest is pretty straight forward: pt-query-digest /path/to/slow-query.log Note that executing pt-query-digest can… next part of the output produced by pt-query-digest. # Profile # Rank Query ID Response time Calls R/Call Apdx V/M Item…
Post: Gathering queries from a server with Maatkit and tcpdump
… of the protocol. This lets us gather queries from servers that don’t have a slow query log enabled, at very high time resolution. With this new functionality, it becomes possible for mk-query-digest to… it. Let’s see: mk-query-digest –type=tcpdump –report-format=profile tcpdump.out # Rank Query ID Response time Calls R/Call Item…
Post: On Good Instrumentation
… of queries or their performance. If I see 2 queries taking 30 seconds it is clearly slow queries. If it is 10.000 queries executed and total response time is 4… increased response time for given kind of request. I see response time is coming from MySQL. I check the number of MySQL Queries…
Post: How to use tcpdump on very busy hosts
… a situation where a single connection sends two queries and gets two responses, with a response time of R for each request, and… mk-query-digest output was obviously bogus when compared to the host’s slow-query-log (for example, none of the top 5 slow queries reported by mkqd appeared in the actual slow log file…
Post: Percona Server 5.1.53-12.4
… variable have_response_time_distribution and compile option –without-response_time_distribution in Response Time Distribution. (Oleg Tsarev) Bugs Fixed Bug #643149 – Slow query log… crash or undefined behavior: log_slow_timestamp_every, log_slow_sp_statements, slow_query_log_microseconds_timestamp, use_global_long_query_time. (Oleg Tsarev) Bug…
Post: Percona Server with XtraDB Case Study, Behind the Scenes
… of slow queries I found was caused by different things. Sometimes GDB stack traces showed InnoDB mutex contention, sometimes oprofile showed the query… response times were from data I gathered with tcprstat. I also used the data from tcprstat to analyze the variation in query response… ad-hoc slow-query-log analysis with awk and other tools to discover and investigate unusual patterns, and figure out whether queries were…
Post: How Percona does a MySQL Performance Audit
… your application runs very short queries, this can be a non-trivial part of the app’s response time. And so on… on the system as a whole. The queries the system runs, and hence the slow query log, is one of the more fruitful… slow /path/to/slow.log By default, this outputs the top 10 most expensive queries, in total execution time. By the way, the slow query…

