Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> MySQLTuner 1.7.17 - 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
- Please enter your MySQL administrative login: root
- Please enter your MySQL administrative password: [OK] Currently running supported MySQL version 8.0.33-0ubuntu0.22.04.2
- [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(0B)
- [OK] Log file /var/log/mysql/error.log is readable.
- [!!] Log file /var/log/mysql/error.log is 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.
- [OK] /var/log/mysql/error.log doesn't contain any error.
- [--] 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: 55.0G (Tables: 4467)
- [!!] Total fragmented tables: 16
- -------- Analysis Performance Metrics --------------------------------------------------------------
- [--] innodb_stats_on_metadata: OFF
- [OK] No stat updates during querying INFORMATION_SCHEMA.
- -------- Security Recommendations ------------------------------------------------------------------
- [--] Skipped due to unsupported feature for MySQL 8
- -------- CVE Security Recommendations --------------------------------------------------------------
- [OK] NO SECURITY CVE FOUND FOR YOUR VERSION
- -------- Performance Metrics -----------------------------------------------------------------------
- [--] Up for: 1d 17h 6m 52s (21K q [0.148 qps], 43 conn, TX: 63M, RX: 35M)
- [--] Reads / Writes: 0% / 100%
- [--] Binary logging is disabled
- [--] Physical Memory : 15.4G
- [--] Max MySQL memory : 4.3G
- [--] Other process memory: 0B
- [--] Total buffers: 4.0G global + 1.9M per thread (151 max threads)
- [--] P_S Max memory usage: 72B
- [--] Galera GCache Max memory usage: 0B
- [OK] Maximum reached memory usage: 4.1G (26.38% of installed RAM)
- [OK] Maximum possible memory usage: 4.3G (28.09% of installed RAM)
- [OK] Overall possible memory usage with other process is compatible with memory available
- [OK] Slow queries: 0% (23/21K)
- [OK] Highest usage of available connections: 4% (7/151)
- [!!] Aborted connections: 4.65% (2/43)
- [!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
- [--] Query cache have been removed in MySQL 8
- [!!] Sorts requiring temporary tables: 19% (1K temp sorts / 9K sorts)
- [OK] No joins without indexes
- [OK] Temporary tables created on disk: 0% (0 on disk / 9K total)
- [OK] Thread cache hit rate: 83% (7 created / 43 connections)
- [!!] Table cache hit rate: 6% (940 open / 13K opened)
- [OK] Open file limit used: 0% (0/10K)
- [OK] Table locks acquired immediately: 100% (55 immediate / 55 locks)
- -------- Performance schema ------------------------------------------------------------------------
- [--] Memory used by P_S: 72B
- [--] Sys schema is installed.
- -------- ThreadPool Metrics ------------------------------------------------------------------------
- [--] ThreadPool stat is disabled.
- -------- MyISAM Metrics ----------------------------------------------------------------------------
- [--] MyISAM Metrics are disabled on last MySQL versions.
- -------- InnoDB Metrics ----------------------------------------------------------------------------
- [--] InnoDB is enabled.
- [--] InnoDB Thread Concurrency: 0
- [OK] InnoDB File per table is activated
- [!!] InnoDB buffer pool / data size: 4.0G/55.0G
- [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (2.34375 %): 48.0M * 2/4.0G should be equal to 25%
- [!!] InnoDB buffer pool instances: 8
- [--] Number of InnoDB Buffer Pool Chunk : 32 for 8 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.58% (474767698 hits/ 476760981 total)
- [OK] InnoDB Write log efficiency: 97.46% (189292863 hits/ 194217238 total)
- [OK] InnoDB log waits: 0.00% (0 waits / 4924375 writes)
- -------- AriaDB Metrics ----------------------------------------------------------------------------
- [--] AriaDB is disabled.
- -------- 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:
- Run OPTIMIZE TABLE to defragment tables for better performance
- OPTIMIZE TABLE `wot_players`.`accounts_a`; -- can free 104 MB
- OPTIMIZE TABLE `wot_players`.`accounts_c`; -- can free 118 MB
- OPTIMIZE TABLE `wot_players`.`accounts_e`; -- can free 696 MB
- OPTIMIZE TABLE `wot_players`.`accounts_n`; -- can free 184 MB
- OPTIMIZE TABLE `wot_players`.`accounts_r`; -- can free 822 MB
- OPTIMIZE TABLE `wot_players`.`tank_1041_r`; -- can free 12 MB
- OPTIMIZE TABLE `wot_players`.`tank_10529_r`; -- can free 24 MB
- OPTIMIZE TABLE `wot_players`.`tank_11265_r`; -- can free 17 MB
- OPTIMIZE TABLE `wot_players`.`tank_11553_r`; -- can free 17 MB
- OPTIMIZE TABLE `wot_players`.`tank_14145_r`; -- can free 17 MB
- OPTIMIZE TABLE `wot_players`.`tank_18193_r`; -- can free 13 MB
- OPTIMIZE TABLE `wot_players`.`tank_3585_r`; -- can free 26 MB
- OPTIMIZE TABLE `wot_players`.`tank_513_r`; -- can free 26 MB
- OPTIMIZE TABLE `wot_players`.`tank_5377_r`; -- can free 29 MB
- OPTIMIZE TABLE `wot_players`.`tank_6465_r`; -- can free 21 MB
- OPTIMIZE TABLE `wot_players`.`tank_6657_r`; -- can free 21 MB
- Total freed space after theses OPTIMIZE TABLE : 2147 Mb
- Reduce or eliminate unclosed connections and network issues
- Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
- Increase table_open_cache gradually to avoid file descriptor limits
- Read this before increasing table_open_cache over 64: https://bit.ly/1mi7c4C
- 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 (10000) variable
- should be greater than table_open_cache (4919)
- Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: https://bit.ly/2TcGgtU
- Variables to adjust:
- sort_buffer_size (> 256K)
- read_rnd_buffer_size (> 256K)
- table_open_cache (> 4919)
- innodb_buffer_pool_size (>= 55.0G) if possible.
- innodb_log_file_size should be (=512M) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
- innodb_buffer_pool_instances(=4)
Add Comment
Please, Sign In to add comment