Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> MySQLTuner 1.7.2 - 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 5.7.24-0ubuntu0.18.04.1
- [OK] Operating on 64-bit architecture
- -------- Log file Recommendations ------------------------------------------------------------------
- [--] Log file: /var/log/mysql/error.log(31K)
- [OK] Log file /var/log/mysql/error.log exists
- [OK] Log file /var/log/mysql/error.log is readable.
- [OK] Log file /var/log/mysql/error.log is not empty
- [OK] Log file /var/log/mysql/error.log is smaller than 32 Mb
- [OK] /var/log/mysql/error.log doesn't contain any warning.
- [!!] /var/log/mysql/error.log contains 116 error(s).
- [--] 0 start(s) detected in /var/log/mysql/error.log
- [--] 0 shutdown(s) detected in /var/log/mysql/error.log
- -------- Storage Engine Statistics -----------------------------------------------------------------
- [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA
- [--] Data in InnoDB tables: 5G (Tables: 2603)
- [OK] Total fragmented tables: 0
- -------- Security Recommendations ------------------------------------------------------------------
- [OK] There are no anonymous accounts for any database users
- [!!] User 'root@localhost' has no password set.
- [--] Bug #80860 MySQL 5.7: Avoid testing password when validate_password is activated
- -------- CVE Security Recommendations --------------------------------------------------------------
- [OK] NO SECURITY CVE FOUND FOR YOUR VERSION
- -------- Performance Metrics -----------------------------------------------------------------------
- [--] Up for: 22h 4m 8s (2M q [35.917 qps], 1K conn, TX: 6G, RX: 466M)
- [--] Reads / Writes: 85% / 15%
- [--] Binary logging is disabled
- [--] Physical Memory : 15.3G
- [--] Max MySQL memory : 6.1G
- [--] Other process memory: 80.6M
- [--] Total buffers: 5.2G global + 3.4M per thread (251 max threads)
- [--] P_S Max memory usage: 72B
- [--] Galera GCache Max memory usage: 0B
- [OK] Maximum reached memory usage: 5.7G (37.10% of installed RAM)
- [OK] Maximum possible memory usage: 6.1G (39.47% of installed RAM)
- [OK] Overall possible memory usage with other process is compatible with memory available
- [OK] Slow queries: 0% (0/2M)
- [OK] Highest usage of available connections: 56% (141/251)
- [OK] Aborted connections: 0.17% (3/1777)
- [!!] Query cache may be disabled by default due to mutex contention.
- [OK] Query cache efficiency: 83.5% (2M cached / 2M selects)
- [OK] Query cache prunes per day: 0
- [!!] Sorts requiring temporary tables: 18% (71K temp sorts / 384K sorts)
- [!!] Joins performed without indexes: 35447
- [OK] Temporary tables created on disk: 9% (64K on disk / 669K total)
- [OK] Thread cache hit rate: 84% (277 created / 1K connections)
- [!!] Table cache hit rate: 1% (2K open / 174K opened)
- [OK] Open file limit used: 0% (18/5K)
- [OK] Table locks acquired immediately: 100% (2K immediate / 2K locks)
- -------- Performance schema ------------------------------------------------------------------------
- [--] Memory used by P_S: 72B
- [--] Sys schema is installed.
- -------- ThreadPool Metrics ------------------------------------------------------------------------
- [--] ThreadPool stat is disabled.
- -------- MyISAM Metrics ----------------------------------------------------------------------------
- [!!] Key buffer used: 19.2% (2M used / 10M cache)
- [OK] Key buffer size / total MyISAM indexes: 10.0M/53.0K
- [OK] Read Key buffer hit rate: 99.2% (5K cached / 41 reads)
- [OK] Write Key buffer hit rate: 100.0% (4 cached / 4 writes)
- -------- InnoDB Metrics ----------------------------------------------------------------------------
- [--] InnoDB is enabled.
- [--] InnoDB Thread Concurrency: 0
- [OK] InnoDB File per table is activated
- [!!] InnoDB buffer pool / data size: 5.0G/6.0G
- [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (40 %): 1.0G * 2/5.0G should be equal 25%
- [!!] InnoDB buffer pool instances: 4
- [--] Number of InnoDB Buffer Pool Chunk : 40 for 4 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: 100.00% (51305369441 hits/ 51305452595 total)
- [!!] InnoDB Write Log efficiency: 69.26% (52996 hits/ 76513 total)
- [OK] InnoDB log waits: 0.00% (0 waits / 23517 writes)
- -------- AriaDB Metrics ----------------------------------------------------------------------------
- [--] AriaDB is disabled.
- -------- TokuDB Metrics ----------------------------------------------------------------------------
- [--] TokuDB is disabled.
- -------- XtraDB Metrics ----------------------------------------------------------------------------
- [--] XtraDB is disabled.
- -------- RocksDB Metrics ---------------------------------------------------------------------------
- [--] RocksDB is disabled.
- -------- Spider Metrics ----------------------------------------------------------------------------
- [--] Spider is disabled.
- -------- Connect Metrics ---------------------------------------------------------------------------
- [--] Connect is disabled.
- -------- Galera Metrics ----------------------------------------------------------------------------
- [--] Galera is disabled.
- -------- Replication Metrics -----------------------------------------------------------------------
- [--] Galera Synchronous replication: NO
- [--] No replication slave(s) for this server.
- [--] This is a standalone server.
- -------- Recommendations ---------------------------------------------------------------------------
- General recommendations:
- Control error line(s) into /var/log/mysql/error.log file
- Set up a Password for user with the following SQL statement ( SET PASSWORD FOR 'user'@'SpecificDNSorIp' = PASSWORD('secure_password'); )
- MySQL started within last 24 hours - recommendations may be inaccurate
- Adjust your join queries to always utilize indexes
- Increase table_open_cache gradually to avoid file descriptor limits
- Read this before increasing table_open_cache over 64: http://bit.ly/1mi7c4C
- Beware that open_files_limit (5000) variable
- should be greater than table_open_cache (2369)
- Variables to adjust:
- query_cache_size (=0)
- query_cache_type (=0)
- sort_buffer_size (> 1M)
- read_rnd_buffer_size (> 1M)
- join_buffer_size (> 1.0M, or always use indexes with joins)
- table_open_cache (> 2369)
- innodb_buffer_pool_size (>= 5G) if possible.
- innodb_log_file_size * innodb_log_files_in_group should be equal to 1/4 of buffer pool size (=2G) if possible.
- innodb_buffer_pool_instances(=5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement