Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [--] Skipped version check for MySQLTuner script
- [--] Performing tests on 127.0.0.1:3306
- [OK] Logged in using credentials from Debian maintenance account.
- [OK] Currently running supported MySQL version 5.7.34-0ubuntu0.18.04.1
- [OK] Operating on 64-bit architecture
- -------- Log file Recommendations ------------------------------------------------------------------
- [OK] Log file /var/log/mysql/error.log exists
- [--] Log file: /var/log/mysql/error.log(61K)
- [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] Log file /var/log/mysql/error.log is readable.
- [!!] /var/log/mysql/error.log contains 4 warning(s).
- [!!] /var/log/mysql/error.log contains 7 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: 1.9G (Tables: 40)
- [--] Data in MyISAM tables: 8.1M (Tables: 1)
- [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
- [--] Bug #80860 MySQL 5.7: Avoid testing password when validate_password is activated
- -------- CVE Security Recommendations --------------------------------------------------------------
- [!!] 6 CVE(s) found for your MySQL release.
- -------- Performance Metrics -----------------------------------------------------------------------
- [--] Up for: 120d 21h 0m 13s (1B q [120.271 qps], 39M conn, TX: 3674G, RX: 250G)
- [--] Reads / Writes: 98% / 2%
- [--] Binary logging is disabled
- [--] Physical Memory : 62.9G
- [--] Max MySQL memory : 2002.3G
- [--] Other process memory: 0B
- [--] Total buffers: 192.0M global + 1.0G per thread (2000 max threads)
- [--] P_S Max memory usage: 72B
- [--] Galera GCache Max memory usage: 0B
- [!!] Maximum reached memory usage: 188.4G (299.43% of installed RAM)
- [!!] Maximum possible memory usage: 2002.3G (3182.59% of installed RAM)
- [!!] Overall possible memory usage with other process exceeded memory
- [OK] Slow queries: 0% (0/1B)
- [OK] Highest usage of available connections: 9% (188/2000)
- [OK] Aborted connections: 0.07% (29105/39297599)
- [!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
- [OK] Query cache is disabled by default due to mutex contention on multiprocessor machines.
- [OK] Sorts requiring temporary tables: 0% (340K temp sorts / 258M sorts)
- [!!] Joins performed without indexes: 12229301
- [!!] Temporary tables created on disk: 34% (33M on disk / 98M total)
- [OK] Thread cache hit rate: 98% (644K created / 39M connections)
- [OK] Table cache hit rate: 99% (3B hits / 3B requests)
- [OK] table_definition_cache(1147) is upper than number of tables(320)
- [OK] Open file limit used: 0% (10/5K)
- [OK] Table locks acquired immediately: 100% (4K immediate / 4K locks)
- -------- Performance schema ------------------------------------------------------------------------
- [--] Memory used by P_S: 72B
- [--] Sys schema is installed.
- -------- ThreadPool Metrics ------------------------------------------------------------------------
- [--] ThreadPool stat is disabled.
- -------- MyISAM Metrics ----------------------------------------------------------------------------
- [!!] Key buffer used: 18.2% (3M used / 16M cache)
- [OK] Key buffer size / total MyISAM indexes: 16.0M/2.4M
- [OK] Read Key buffer hit rate: 96.3% (1K cached / 53 reads)
- -------- InnoDB Metrics ----------------------------------------------------------------------------
- [--] InnoDB is enabled.
- [--] InnoDB Thread Concurrency: 0
- [OK] InnoDB File per table is activated
- [!!] InnoDB buffer pool / data size: 128.0M/1.9G
- [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (75 %): 48.0M * 2/128.0M should be equal to 25%
- [OK] InnoDB buffer pool instances: 1
- [--] Number of InnoDB Buffer Pool Chunk : 1 for 1 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.49% (4478615004041 hits/ 4501776876557 total)
- [!!] InnoDB Write Log efficiency: 42.41% (6738376 hits/ 15887676 total)
- [OK] InnoDB log waits: 0.00% (0 waits / 22626052 writes)
- -------- Aria Metrics ------------------------------------------------------------------------------
- [--] Aria Storage Engine not available.
- -------- 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: ROW
- [--] XA support enabled: ON
- [--] Semi synchronous replication Master: Not Activated
- [--] Semi synchronous replication Slave: Not Activated
- [--] This is a standalone server
- -------- Recommendations ---------------------------------------------------------------------------
- General recommendations:
- Check warning line(s) in /var/log/mysql/error.log file
- Check error line(s) in /var/log/mysql/error.log file
- 6 CVE(s) found for your MySQL release. Consider upgrading your version !
- Reduce your overall MySQL memory footprint for system stability
- Dedicate this server to your database for highest performance.
- Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
- 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).
- When making adjustments, make tmp_table_size/max_heap_table_size equal
- Reduce your SELECT DISTINCT queries which have no LIMIT clause
- Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: https://bit.ly/2TcGgtU
- Variables to adjust:
- *** MySQL's maximum memory usage is dangerously high ***
- *** Add RAM before increasing MySQL buffer variables ***
- join_buffer_size (> 256.0K, or always use indexes with JOINs)
- tmp_table_size (> 16M)
- max_heap_table_size (> 16M)
- innodb_buffer_pool_size (>= 1.9G) if possible.
- innodb_log_file_size should be (=16M) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
Add Comment
Please, Sign In to add comment