-- MYSQL PERFORMANCE TUNING PRIMER --
- By: Matthew Montgomery -
MySQL Version 5.1.53-log i386
Uptime = 0 days 0 hrs 3 min 37 sec
Avg. qps = 25
Total Questions = 5462
Threads Connected = 21
Warning: Server has not been running for at least 48hrs.
It may not be safe to use these recommendations
To find out more information on how each of these
runtime variables effects performance visit:http://dev.mysql.com/doc/refman/5.1/en/ ... ables.html
for info about MySQL's Enterprise Monitoring and Advisory Service
The slow query log is enabled.
Current long_query_time = 2.000000 sec.
You have 230 out of 5484 that take longer than 2.000000 sec. to complete
Your long_query_time seems to be fine
BINARY UPDATE LOG
The binary update log is enabled
Current thread_cache_size = 32
Current threads_cached = 0
Current threads_per_sec = 0
Historic threads_per_sec = 0
Your thread_cache_size is fine
Current max_connections = 32
Current threads_connected = 21
Historic max_used_connections = 21
The number of used connections is 65% of the configured maximum.
Your max_connections variable seems to be fine.
No InnoDB Support Enabled!
Max Memory Ever Allocated : 894 M
Configured Max Per-thread Buffers : 486 M
Configured Max Global Buffers : 576 M
Configured Max Memory Limit : 1.03 G
Physical Memory : 512 M
nMax memory limit exceeds 90% of physical memory
Current MyISAM index space = 290 M
Current key_buffer_size = 320 M
Key cache miss rate is 1 : 9717
Key buffer free ratio = 86 %
Your key_buffer_size seems to be fine
Query cache is enabled
Current query_cache_size = 256 M
Current query_cache_used = 85 K
Current query_cache_limit = 16 M
Current Query cache Memory fill ratio = .03 %
Current query_cache_min_res_unit = 4 K
Query Cache is 21 % fragmented
Run "FLUSH QUERY CACHE" periodically to defragment the query cache memory
If you have many small queries lower 'query_cache_min_res_unit' to reduce fragmentation.
Your query_cache_size seems to be too high.
Perhaps you can use these resources elsewhere
MySQL won't cache query results that are larger than query_cache_limit in size
Current sort_buffer_size = 2 M
Current read_rnd_buffer_size = 8 M
Sort buffer seems to be fine
Current join_buffer_size = 2.00 M
You have had 76 queries where a join could not use an index properly
You should enable "log-queries-not-using-indexes"
Then look for non indexed joins in the slow query log.
If you are unable to optimize your queries you may want to increase your
join_buffer_size to accommodate larger joins in one pass.
Note! This script will still suggest raising the join_buffer_size when
ANY joins not using indexes are found.
OPEN FILES LIMIT
Current open_files_limit = 11095 files
The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.
Your open_files_limit value seems to be fine
Current table_open_cache = 3072 tables
Current table_definition_cache = 1024 tables
You have a total of 88 tables
You have 123 open tables.
The table_cache value seems to be fine
Current max_heap_table_size = 64 M
Current tmp_table_size = 64 M
Of 280 temp tables, 50% were created on disk
Perhaps you should increase your tmp_table_size and/or max_heap_table_size
to reduce the number of disk-based temporary tables
Note! BLOB and TEXT columns are not allow in memory tables.
If you are using these columns raising these values might not impact your
ratio of on disk temp tables.
Current read_buffer_size = 2 M
Current table scan ratio = 28398 : 1
You have a high ratio of sequential access requests to SELECTs
You may benefit from raising read_buffer_size and/or improving your use of indexes.
Current Lock Wait ratio = 1 : 52
You may benefit from selective use of InnoDB.
If you have long running SELECT's against MyISAM tables and perform
frequent updates consider setting 'low_priority_updates=1'
If you have a high concurrency of inserts on Dynamic row-length tables
consider setting 'concurrent_insert=2'.