Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> MySQLTuner 1.7.19 - Major Hayden <major@mhtx.net>
- >> Bug reports, feature requests, and downloads at http://mysqltuner.com/
- >> Run with '--help' for additional options and output filtering
- [--] Skipped version check for MySQLTuner script
- [OK] Logged in using credentials from Debian maintenance account.
- [OK] Currently running supported MySQL version 10.4.13-MariaDB-1:10.4.13+maria~focal-log
- [OK] Operating on 64-bit architecture
- -------- Log file Recommendations ------------------------------------------------------------------
- [!!] Log file doesn't exist
- -------- Storage Engine Statistics -----------------------------------------------------------------
- [--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE
- [--] Data in InnoDB tables: 3.4G (Tables: 492)
- [OK] Total fragmented tables: 0
- -------- Analysis Performance Metrics --------------------------------------------------------------
- [--] innodb_stats_on_metadata: OFF
- [OK] No stat updates during querying INFORMATION_SCHEMA.
- -------- Security Recommendations ------------------------------------------------------------------
- [OK] There are no anonymous accounts for any database users
- [OK] All database users have passwords assigned
- [!!] User 'webuser@%' does not specify hostname restrictions.
- [!!] There is no basic password file list!
- -------- CVE Security Recommendations --------------------------------------------------------------
- [--] Skipped due to --cvefile option undefined
- -------- Performance Metrics -----------------------------------------------------------------------
- [--] Up for: 8h 14m 27s (69M q [2K qps], 2M conn, TX: 90G, RX: 11G)
- [--] Reads / Writes: 91% / 9%
- [--] Binary logging is enabled (GTID MODE: OFF)
- [--] Physical Memory : 61.7G
- [--] Max MySQL memory : 44.9G
- [--] Other process memory: 0B
- [--] Total buffers: 17.0G global + 27.3M per thread (1024 max threads)
- [--] P_S Max memory usage: 629M
- [--] Galera GCache Max memory usage: 0B
- [OK] Maximum reached memory usage: 25.7G (41.63% of installed RAM)
- [OK] Maximum possible memory usage: 44.9G (72.76% of installed RAM)
- [OK] Overall possible memory usage with other process is compatible with memory available
- [!!] Slow queries: 7% (4M/69M)
- [OK] Highest usage of available connections: 29% (303/1024)
- [OK] Aborted connections: 0.00% (0/2369339)
- [!!] Query cache may be disabled by default due to mutex contention.
- [!!] Query cache efficiency: 0.0% (0 cached / 55M selects)
- [OK] Query cache prunes per day: 0
- [OK] Sorts requiring temporary tables: 0% (3 temp sorts / 4M sorts)
- [!!] Joins performed without indexes: 515153
- [!!] Temporary tables created on disk: 35% (1M on disk / 5M total)
- [OK] Thread cache hit rate: 99% (303 created / 2M connections)
- [OK] Table cache hit rate: 95% (918 open / 958 opened)
- [OK] table_definition_cache(2000) is upper than number of tables(652)
- [OK] Open file limit used: 0% (58/16K)
- [OK] Table locks acquired immediately: 100% (695 immediate / 695 locks)
- [OK] Binlog cache memory access: 99.61% (2675098 Memory / 2685670 Total)
- -------- Performance schema ------------------------------------------------------------------------
- [--] Memory used by P_S: 629.6M
- [--] Sys schema isn't installed.
- -------- ThreadPool Metrics ------------------------------------------------------------------------
- [--] ThreadPool stat is enabled.
- [--] Thread Pool Size: 16 thread(s).
- [--] Using default value is good enough for your version (10.4.13-MariaDB-1:10.4.13+maria~focal-log)
- -------- MyISAM Metrics ----------------------------------------------------------------------------
- [!!] Key buffer used: 1.4% (7M used / 536M cache)
- [!!] Cannot calculate MyISAM index size - re-run script as root user
- -------- InnoDB Metrics ----------------------------------------------------------------------------
- [--] InnoDB is enabled.
- [--] InnoDB Thread Concurrency: 6
- [OK] InnoDB File per table is activated
- [OK] InnoDB buffer pool / data size: 16.0G/3.4G
- [OK] Ratio InnoDB log file size / InnoDB Buffer pool size: 2.0G * 2/16.0G should be equal to 25%
- [OK] InnoDB buffer pool instances: 16
- [--] Number of InnoDB Buffer Pool Chunk : 16 for 16 Buffer Pool Instance(s)
- [OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
- [OK] InnoDB Read buffer efficiency: 99.99% (3738457503 hits/ 3738719747 total)
- [!!] InnoDB Write Log efficiency: 65.95% (5029245 hits/ 7626023 total)
- [OK] InnoDB log waits: 0.00% (0 waits / 2596778 writes)
- -------- AriaDB Metrics ----------------------------------------------------------------------------
- [--] AriaDB is enabled.
- [OK] Aria pagecache size / total Aria indexes: 128.0M/328.0K
- [OK] Aria pagecache hit rate: 99.3% (275M cached / 1M reads)
- -------- TokuDB Metrics ----------------------------------------------------------------------------
- [--] TokuDB is disabled.
- -------- XtraDB Metrics ----------------------------------------------------------------------------
- [--] XtraDB is disabled.
- -------- Galera Metrics ----------------------------------------------------------------------------
- [--] Galera is disabled.
- -------- Replication Metrics -----------------------------------------------------------------------
- [--] Galera Synchronous replication: NO
- [--] No replication slave(s) for this server.
- [--] Binlog format: MIXED
- [--] XA support enabled: ON
- [--] Semi synchronous replication Master: OFF
- [--] Semi synchronous replication Slave: OFF
- [--] This is a standalone server
- -------- Recommendations ---------------------------------------------------------------------------
- General recommendations:
- Restrict Host for 'webuser'@% to webuser@SpecificDNSorIp
- UPDATE mysql.user SET host ='SpecificDNSorIp' WHERE user='webuser' AND host ='%'; FLUSH PRIVILEGES;
- MySQL was started within the last 24 hours - recommendations may be inaccurate
- We will suggest raising the 'join_buffer_size' until JOINs not using indexes are found.
- See https://dev.mysql.com/doc/internals/en/join-buffer-size.html
- (specially the conclusions at the bottom of the page).
- Temporary table size is already large - reduce result set size
- Reduce your SELECT DISTINCT queries without LIMIT clauses
- Consider installing Sys schema from https://github.com/mysql/mysql-sys for MySQL
- Consider installing Sys schema from https://github.com/FromDual/mariadb-sys for MariaDB
- Variables to adjust:
- query_cache_size (=0)
- query_cache_type (=0)
- query_cache_limit (> 128K, or use smaller result sets)
- join_buffer_size (> 4.0M, or always use indexes with JOINs)
Add Comment
Please, Sign In to add comment