Advertisement
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
- [!!] Your MySQL version 5.5.65-MariaDB is EOL software! Upgrade soon!
- [OK] Operating on 64-bit architecture
- -------- Log file Recommendations ------------------------------------------------------------------
- [OK] Log file /var/log/mariadb/mariadb.log exists
- [--] Log file: /var/log/mariadb/mariadb.log(71K)
- [OK] Log file /var/log/mariadb/mariadb.log is readable.
- [OK] Log file /var/log/mariadb/mariadb.log is not empty
- [OK] Log file /var/log/mariadb/mariadb.log is smaller than 32 Mb
- [!!] /var/log/mariadb/mariadb.log contains 10 warning(s).
- [!!] /var/log/mariadb/mariadb.log contains 78 error(s).
- [--] 36 start(s) detected in /var/log/mariadb/mariadb.log
- [--] 1) 200531 22:21:29 [Note] /usr/libexec/mysqld: ready for connections.
- [--] 2) 200531 22:17:36 [Note] /usr/libexec/mysqld: ready for connections.
- [--] 3) 200529 19:47:15 [Note] /usr/libexec/mysqld: ready for connections.
- [--] 4) 200529 19:24:24 [Note] /usr/libexec/mysqld: ready for connections.
- [--] 5) 200529 19:15:13 [Note] /usr/libexec/mysqld: ready for connections.
- [--] 6) 200529 17:31:41 [Note] /usr/libexec/mysqld: ready for connections.
- [--] 7) 200529 17:31:00 [Note] /usr/libexec/mysqld: ready for connections.
- [--] 8) 200529 17:28:19 [Note] /usr/libexec/mysqld: ready for connections.
- [--] 9) 200529 17:25:48 [Note] /usr/libexec/mysqld: ready for connections.
- [--] 10) 200529 17:24:21 [Note] /usr/libexec/mysqld: ready for connections.
- [--] 49 shutdown(s) detected in /var/log/mariadb/mariadb.log
- [--] 1) 200531 22:21:23 [Note] /usr/libexec/mysqld: Shutdown complete
- [--] 2) 200531 22:21:16 [Note] /usr/libexec/mysqld: Shutdown complete
- [--] 3) 200531 22:21:09 [Note] /usr/libexec/mysqld: Shutdown complete
- [--] 4) 200531 22:21:02 [Note] /usr/libexec/mysqld: Shutdown complete
- [--] 5) 200531 22:20:54 [Note] /usr/libexec/mysqld: Shutdown complete
- [--] 6) 200531 22:20:48 [Note] /usr/libexec/mysqld: Shutdown complete
- [--] 7) 200531 22:20:41 [Note] /usr/libexec/mysqld: Shutdown complete
- [--] 8) 200531 22:20:33 [Note] /usr/libexec/mysqld: Shutdown complete
- [--] 9) 200531 22:20:27 [Note] /usr/libexec/mysqld: Shutdown complete
- [--] 10) 200531 22:20:26 [Note] /usr/libexec/mysqld: Shutdown complete
- -------- Storage Engine Statistics -----------------------------------------------------------------
- [--] Status: +ARCHIVE +Aria +BLACKHOLE +CSV +FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA
- [--] Data in MyISAM tables: 7.9G (Tables: 222)
- [--] Data in InnoDB tables: 12.1G (Tables: 346)
- [OK] Total fragmented tables: 0
- -------- Analysis Performance Metrics --------------------------------------------------------------
- [--] innodb_stats_on_metadata: ON
- [!!] Stat are updated during querying INFORMATION_SCHEMA.
- -------- Security Recommendations ------------------------------------------------------------------
- [OK] There are no anonymous accounts for any database users
- [OK] All database users have passwords assigned
- [!!] There is no basic password file list!
- -------- CVE Security Recommendations --------------------------------------------------------------
- [--] Skipped due to --cvefile option undefined
- -------- Performance Metrics -----------------------------------------------------------------------
- [--] Up for: 1d 17h 35m 3s (1M q [7.956 qps], 55K conn, TX: 20G, RX: 87M)
- [--] Reads / Writes: 84% / 16%
- [--] Binary logging is disabled
- [--] Physical Memory : 3.7G
- [--] Max MySQL memory : 4.8G
- [--] Other process memory: 0B
- [--] Total buffers: 4.3G global + 3.8M per thread (151 max threads)
- [--] P_S Max memory usage: 0B
- [--] Galera GCache Max memory usage: 0B
- [!!] Maximum reached memory usage: 4.3G (116.89% of installed RAM)
- [!!] Maximum possible memory usage: 4.8G (130.76% of installed RAM)
- [!!] Overall possible memory usage with other process exceeded memory
- [OK] Slow queries: 0% (17/1M)
- [OK] Highest usage of available connections: 7% (12/151)
- [OK] Aborted connections: 0.00% (1/55834)
- [!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
- [!!] Query cache may be disabled by default due to mutex contention.
- [!!] Query cache efficiency: 0.0% (0 cached / 582K selects)
- [OK] Query cache prunes per day: 0
- [OK] Sorts requiring temporary tables: 0% (9 temp sorts / 1K sorts)
- [OK] No joins without indexes
- [!!] Temporary tables created on disk: 99% (376K on disk / 379K total)
- [!!] Thread cache is disabled
- [!!] Table cache hit rate: 9% (400 open / 4K opened)
- [!!] table_definition_cache(400) is lower than number of tables(671)
- [OK] Open file limit used: 9% (93/962)
- [OK] Table locks acquired immediately: 100% (744K immediate / 744K locks)
- -------- Performance schema ------------------------------------------------------------------------
- [--] Performance schema is disabled.
- [--] Memory used by P_S: 0B
- [--] Sys schema isn't installed.
- -------- ThreadPool Metrics ------------------------------------------------------------------------
- [--] ThreadPool stat is enabled.
- [--] Thread Pool Size: 2 thread(s).
- [--] Using default value is good enough for your version (5.5.65-MariaDB)
- -------- MyISAM Metrics ----------------------------------------------------------------------------
- [!!] Key buffer used: 18.2% (781M used / 4B cache)
- [!!] Key buffer size / total MyISAM indexes: 4.0G/4.3G
- [!!] Read Key buffer hit rate: 86.1% (2M cached / 379K reads)
- [OK] Write Key buffer hit rate: 99.2% (238 cached / 236 writes)
- -------- InnoDB Metrics ----------------------------------------------------------------------------
- [--] InnoDB is enabled.
- [--] InnoDB Thread Concurrency: 0
- [!!] InnoDB File per table is not activated
- [!!] InnoDB buffer pool / data size: 128.0M/12.1G
- [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (7.8125 %): 5.0M * 2/128.0M should be equal to 25%
- [OK] InnoDB buffer pool instances: 1
- [--] InnoDB Buffer Pool Chunk Size not used or defined in your version
- [OK] InnoDB Read buffer efficiency: 99.94% (45432893 hits/ 45458201 total)
- [!!] InnoDB Write Log efficiency: 65.51% (2397 hits/ 3659 total)
- [OK] InnoDB log waits: 0.00% (0 waits / 6056 writes)
- -------- AriaDB Metrics ----------------------------------------------------------------------------
- [--] AriaDB is enabled.
- [OK] Aria pagecache size / total Aria indexes: 128.0M/1B
- [!!] Aria pagecache hit rate: 33.0% (264 cached / 177 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: STATEMENT
- [--] XA support enabled: ON
- [--] Semi synchronous replication Master: Not Activated
- [--] Semi synchronous replication Slave: Not Activated
- [--] This is a standalone server
- -------- Recommendations ---------------------------------------------------------------------------
- General recommendations:
- Control warning line(s) into /var/log/mariadb/mariadb.log file
- Control error line(s) into /var/log/mariadb/mariadb.log file
- Reduce your overall MySQL memory footprint for system stability
- Dedicate this server to your database for highest performance.
- Enable the slow query log to troubleshoot bad queries
- Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
- When making adjustments, make tmp_table_size/max_heap_table_size equal
- Reduce your SELECT DISTINCT queries which have no LIMIT clause
- Set thread_cache_size to 4 as a starting value
- Increase table_open_cache gradually to avoid file descriptor limits
- Read this before increasing table_open_cache over 64: https://bit.ly/2Fulv7r
- Read this before increasing for MariaDB https://mariadb.com/kb/en/library/optimizing-table_open_cache/
- This is MyISAM only table_cache scalability problem, InnoDB not affected.
- See more details here: https://bugs.mysql.com/bug.php?id=49177
- This bug already fixed in MySQL 5.7.9 and newer MySQL versions.
- Beware that open_files_limit (962) variable
- should be greater than table_open_cache (400)
- For MySQL 5.6.2 and lower, Max combined innodb_log_file_size should have a ceiling of (4096MB / log files in group) - 1MB.
- 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 ***
- SET innodb_stats_on_metadata = OFF
- query_cache_size (=0)
- query_cache_type (=0)
- query_cache_limit (> 1M, or use smaller result sets)
- tmp_table_size (> 16M)
- max_heap_table_size (> 16M)
- thread_cache_size (start at 4)
- table_open_cache (> 400)
- table_definition_cache(400) > 671 or -1 (autosizing if supported)
- key_buffer_size (> 4.3G)
- innodb_file_per_table=ON
- innodb_buffer_pool_size (>= 12.1G) if possible.
- innodb_log_file_size should be (=16M) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement