Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@fange:/home# ./tuning-primer.sh
- -- MYSQL PERFORMANCE TUNING PRIMER --
- - By: Matthew Montgomery -
- MySQL Version 5.5.54-0+deb8u1 x86_64
- Uptime = 213503982334601 days 6 hrs 48 min 2 sec
- Avg. qps = 0
- Total Questions = 632588
- Threads Connected = 703
- ./tuning-primer.sh: 550: [: Illegal number: 18446744073709550882
- 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.5/en/server-system-variables.html
- Visit http://www.mysql.com/products/enterprise/advisors.html
- 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 2 out of 632611 that take longer than 10.000000 sec. to complete
- 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 http://dev.mysql.com/doc/refman/5.5/en/point-in-time-recovery.html
- WORKER THREADS
- Current thread_cache_size = 20
- Current threads_cached = 1
- Current threads_per_sec = 0
- Historic threads_per_sec = 0
- Your thread_cache_size is fine
- MAX CONNECTIONS
- Current max_connections = 3500
- Current threads_connected = 703
- Historic max_used_connections = 706
- The number of used connections is 20% of the configured maximum.
- Your max_connections variable seems to be fine.
- INNODB STATUS
- Current InnoDB index space = 89 M
- Current InnoDB data space = 375 M
- Current InnoDB buffer pool free = 90 %
- Current innodb_buffer_pool_size = 4.00 G
- 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
- Max Memory Ever Allocated : 19.78 G
- Configured Max Per-thread Buffers : 76.90 G
- Configured Max Global Buffers : 4.27 G
- Configured Max Memory Limit : 81.17 G
- Physical Memory : 47.26 G
- Max memory limit exceeds 90% of physical memory
- KEY BUFFER
- Current MyISAM index space = 88 M
- Current key_buffer_size = 256 M
- Key cache miss rate is 1 : 62
- Key buffer free ratio = 80 %
- Your key_buffer_size seems to be fine
- QUERY CACHE
- Query cache is enabled
- Current query_cache_size = 8 M
- Current query_cache_used = 1 M
- Current query_cache_limit = 8 M
- Current Query cache Memory fill ratio = 21.55 %
- Current query_cache_min_res_unit = 4 K
- Query Cache is 23 % 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
- SORT OPERATIONS
- Current sort_buffer_size = 2 M
- Current read_rnd_buffer_size = 256 K
- Sort buffer seems to be fine
- JOINS
- Current join_buffer_size = 4.00 M
- You have had 614 queries where a join could not use an index properly
- join_buffer_size >= 4 M
- This is not advised
- You should enable "log-queries-not-using-indexes"
- Then look for non indexed joins in the slow query log.
- OPEN FILES LIMIT
- Current open_files_limit = 102400 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 = 16000 tables
- Current table_definition_cache = 4096 tables
- You have a total of 928 tables
- You have 947 open tables.
- The table_cache value seems to be fine
- TEMP TABLES
- Current max_heap_table_size = 128 M
- Current tmp_table_size = 128 M
- Of 1419 temp tables, 6% were created on disk
- Created disk tmp tables ratio seems fine
- TABLE SCANS
- Current read_buffer_size = 16 M
- Current table scan ratio = 395 : 1
- read_buffer_size is over 8 MB there is probably no need for such a large read_buffer
- TABLE LOCKING
- Current Lock Wait ratio = 1 : 58771
- Your table locking seems to be fine
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement