Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- MYSQL PERFORMANCE TUNING PRIMER --
- - By: Matthew Montgomery -
- MySQL Version 10.6.11-MariaDB-0ubuntu0.22.04.1-log x86_64
- Uptime = 0 days 0 hrs 9 min 13 sec
- Avg. qps = 196.34
- Total Questions = 108577
- Threads Connected = 2
- 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/10.6/en/server-system-variables.html
- Visit https://github.com/BMDan/tuning-primer.sh for the latest version of
- this script, or to suggest improvements.
- SLOW QUERIES
- The slow query log is enabled.
- Current long_query_time = 1.000000 sec.
- Since startup, 1 out of 108591 queries have taken longer than <long_query_time-when-they-were-executed> to complete.
- Your long_query_time seems reasonable.
- BINARY UPDATE LOG
- The binary update log is enabled
- Binlog sync is not enabled, you could lose binlog records during a server crash
- WORKER THREADS
- Current thread_cache_size = 128
- Current threads_cached = 58
- Current threads_per_sec = 0
- Historic threads_per_sec = 0
- Your thread_cache_size is fine
- MAX CONNECTIONS
- Current max_connections = 200
- Current threads_connected = 2
- Historic max_used_connections = 60
- The number of used connections is 30% of the configured maximum.
- Your max_connections variable seems to be fine.
- INNODB STATUS
- Current InnoDB index space = 176 M
- Current InnoDB data space = 334 M
- Current InnoDB buffer pool free = 56 %
- Current innodb_buffer_pool_size = 1.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 : 1.66 G
- Configured Max Per-thread Buffers : 1.47 G
- Configured Max Global Buffers : 1.21 G
- Configured Max Memory Limit : 2.69 G
- Physical Memory : 15.62 G
- Max memory limit seem to be within acceptable norms
- KEY BUFFER
- No key reads. If you aren't using MyISAM, this is normal. If you are
- using MyISAM, this is very, very bad.
- Current MyISAM index space = 0 bytes
- Current key_buffer_size = 128 M
- Key cache miss rate is 1 : 0
- Key buffer free ratio = 81 %
- Your key_buffer_size seems to be fine
- QUERY CACHE
- You have query cache enabled. With many versions of the server, you may see
- query cache lock contention, especially if you have more than one core.
- Current query_cache_size = 64 M
- Current query_cache_used = 6 M
- Current query_cache_limit = 2 M
- Current Query cache Memory fill ratio = 10.41 %
- Current query_cache_min_res_unit = 2 K
- 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 = 4 M
- Current read_rnd_buffer_size = 1 M
- Sort buffer seems to be fine
- JOINS
- Current join_buffer_size = 260.00 K
- You have had 4 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 = 32235 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 = 2000 tables
- Current table_definition_cache = 2000 tables
- You have a total of 484 tables
- You have 525 open tables.
- The table_cache value seems to be fine
- TEMP TABLES
- Current max_heap_table_size = 64 M
- Current tmp_table_size = 64 M
- Of 3365 temp tables, 18% were created on disk
- Created disk tmp tables ratio seems fine
- TABLE SCANS
- Current read_buffer_size = 2 M
- Current table scan ratio = 15 : 1
- read_buffer_size seems to be fine
- TABLE LOCKING
- Current Lock Wait ratio = 0 : 108775
- Your table locking seems to be fine
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement