You are on page 1of 1

Improving MySQL Performance

MySQL responding slowly


Major Hayden
Version 1.0 - February 2009

Find and Load Server Reverse Set reverse DNS record


correct source No caused by Yes under high No DNS set for No or add client to hosts file
of server load MySQL? load? client server? on database server

Yes Yes or N/A

Adjust thread Enable


Kill slow queries, enable
cache, remove compression, Slow queries
Type of slow query logging and
complex CPU Network upgrade NIC/ in the Yes
load use EXPLAIN to improve
calculations switch, reduce process list?
queries
from queries result set size
I/O

No

Adjust buffer Static


Consider using Verify that your
cache, query Mostly application
InnoDB, use application or application
cache, table Reads reads or Writes content Yes
noatime, get server is not the source
cache, thread writes? loading
faster storage of the slow responses
cache slowly?

No

Consider memcache, MySQL replication,


additional hardware, reduce the number Look for ways to reduce Consider an alternative
of queries and result set size, optimize database load or Backups in backup method, such as
No Yes
table structures and joins database queries in progress? LVM snapshots or
general replication
A DBA could provide a deeper analysis.

You might also like