-- MYSQL PERFORMANCE TUNING PRIMER --
- By: Matthew Montgomery -
MySQL Version 5.1.54 i686
./tuning-primer.sh: line 497: bc: command not found
./tuning-primer.sh: line 498: bc: command not found
./tuning-primer.sh: line 499: bc: command not found
./tuning-primer.sh: line 500: bc: command not found
./tuning-primer.sh: line 501: bc: command not found
./tuning-primer.sh: line 502: bc: command not found
Uptime = days hrs min sec
Avg. qps = 16
Total Questions = 16212968
Threads Connected = 3
Server has been running for over 48hrs.
It should be safe to follow these recommendations
To find out more information on how each of these
runtime variables effects performance visit:
MySQL :: MySQL 5.1 Reference Manual :: 5.1.4 Server System Variables
Visit
MySQL :: MySQL Enterprise Advisors
for info about MySQL's Enterprise Monitoring and Advisory Service
SLOW QUERIES
The slow query log is NOT enabled.
Current long_query_time = 10.000000 sec.
You have 139 out of 16212989 that take longer than 10.000000 sec. to complete
./tuning-primer.sh: line 403: bc: command not found
./tuning-primer.sh: line 606: [: -gt: unary operator expected
Your long_query_time seems to be fine
BINARY UPDATE LOG
The binary update log is NOT enabled.
You will not be able to do point in time recovery
See
MySQL :: MySQL 5.1 Reference Manual :: 6.5 Point-in-Time (Incremental) Recovery Using the Binary Log
WORKER THREADS
Current thread_cache_size = 0
Current threads_cached = 0
Current threads_per_sec = 1
Historic threads_per_sec = 0
Your thread_cache_size is fine
MAX CONNECTIONS
Current max_connections = 151
Current threads_connected = 3
Historic max_used_connections = 28
The number of used connections is 18% of the configured maximum.
Your max_connections variable seems to be fine.
INNODB STATUS
./tuning-primer.sh: line 440: bc: command not found
Current InnoDB index space = M
./tuning-primer.sh: line 440: bc: command not found
Current InnoDB data space = M
Current InnoDB buffer pool free = 0 %
./tuning-primer.sh: line 440: bc: command not found
Current innodb_buffer_pool_size = M
Depending on how much space your innodb indexes take up it may be safe
to increase this value to up to 2 / 3 of total system memory
MEMORY USAGE
./tuning-primer.sh: line 1321: bc: command not found
./tuning-primer.sh: line 1322: bc: command not found
./tuning-primer.sh: line 1346: bc: command not found
./tuning-primer.sh: line 1349: bc: command not found
./tuning-primer.sh: line 1350: bc: command not found
./tuning-primer.sh: line 1352: bc: command not found
./tuning-primer.sh: line 1354: [: -gt: unary operator expected
./tuning-primer.sh: line 459: [: max_memoryHR: integer expression expected
./tuning-primer.sh: line 465: [: max_memoryHR: integer expression expected
./tuning-primer.sh: line 471: [: max_memoryHR: integer expression expected
./tuning-primer.sh: line 478: export: `=max_memoryHR': not a valid identifier
Max Memory Ever Allocated : bytes
./tuning-primer.sh: line 459: [: per_thread_buffersHR: integer expression expected
./tuning-primer.sh: line 465: [: per_thread_buffersHR: integer expression expected
./tuning-primer.sh: line 471: [: per_thread_buffersHR: integer expression expected
./tuning-primer.sh: line 478: export: `=per_thread_buffersHR': not a valid identifier
Configured Max Per-thread Buffers : bytes
./tuning-primer.sh: line 459: [: global_buffersHR: integer expression expected
./tuning-primer.sh: line 465: [: global_buffersHR: integer expression expected
./tuning-primer.sh: line 471: [: global_buffersHR: integer expression expected
./tuning-primer.sh: line 478: export: `=global_buffersHR': not a valid identifier
Configured Max Global Buffers : bytes
./tuning-primer.sh: line 459: [: total_memoryHR: integer expression expected
./tuning-primer.sh: line 465: [: total_memoryHR: integer expression expected
./tuning-primer.sh: line 471: [: total_memoryHR: integer expression expected
./tuning-primer.sh: line 478: export: `=total_memoryHR': not a valid identifier
Configured Max Memory Limit : bytes
./tuning-primer.sh: line 440: bc: command not found
Physical Memory : G
Max memory limit seem to be within acceptable norms
KEY BUFFER
./tuning-primer.sh: line 754: bc: command not found
./tuning-primer.sh: line 755: bc: command not found
./tuning-primer.sh: line 440: bc: command not found
Current MyISAM index space = M
./tuning-primer.sh: line 440: bc: command not found
Current key_buffer_size = M
Key cache miss rate is 1 : 36
Key buffer free ratio = %
./tuning-primer.sh: line 788: [: -le: unary operator expected
./tuning-primer.sh: line 792: [: -le: unary operator expected
./tuning-primer.sh: line 796: [: -le: unary operator expected
Your key_buffer_size seems to be fine
QUERY CACHE
Query cache is supported but not enabled
Perhaps you should set the query_cache_size
SORT OPERATIONS
./tuning-primer.sh: line 440: bc: command not found
Current sort_buffer_size = M
./tuning-primer.sh: line 440: bc: command not found
Current read_rnd_buffer_size = K
Sort buffer seems to be fine
JOINS
./tuning-primer.sh: line 440: bc: command not found
Current join_buffer_size = K
You have had 3974 queries where a join could not use an index properly
You have had 11 joins without keys that check for key usage after each row
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 = 4096 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
TABLE CACHE
Current table_open_cache = 64 tables
Current table_definition_cache = 256 tables
You have a total of 4245 tables
You have 64 open tables.
Current table_cache hit rate is 0%
, while 100% of your table cache is in use
You should probably increase your table_cache
You should probably increase your table_definition_cache value.
TEMP TABLES
./tuning-primer.sh: line 440: bc: command not found
Current max_heap_table_size = M
./tuning-primer.sh: line 440: bc: command not found
Current tmp_table_size = M
Of 668179 temp tables, 17% were created on disk
Created disk tmp tables ratio seems fine
TABLE SCANS
./tuning-primer.sh: line 440: bc: command not found
Current read_buffer_size = K
Current table scan ratio = 204 : 1
read_buffer_size seems to be fine
TABLE LOCKING
Current Lock Wait ratio = 1 : 3636
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'.