Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [nos_admin@hun25-13v mysqltuner]$ perl mysqltuner.pl --host 127.0.0.1
- >> MySQLTuner 1.7.25 - Major Hayden <[email protected]>
- >> Bug reports, feature requests, and downloads at http://mysqltuner.pl/
- >> Run with '--help' for additional options and output filtering
- [--] Skipped version check for MySQLTuner script
- [--] Performing tests on 127.0.0.1:3306
- Please enter your MySQL administrative login: root
- Please enter your MySQL administrative password: [OK] Currently running supported MySQL version 8.0.25
- [OK] Operating on 64-bit architecture
- -------- Log file Recommendations ------------------------------------------------------------------
- [OK] Log file /var/log/mysqld.log exists
- [--] Log file: /var/log/mysqld.log(1018K)
- [OK] Log file /var/log/mysqld.log is not empty
- [OK] Log file /var/log/mysqld.log is smaller than 32 Mb
- [OK] Log file /var/log/mysqld.log is readable.
- [!!] /var/log/mysqld.log contains 1004 warning(s).
- [!!] /var/log/mysqld.log contains 514 error(s).
- [--] 609 start(s) detected in /var/log/mysqld.log
- [--] 1) 2021-05-11T08:32:26.199637Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.25' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server - GPL.
- [--] 2) 2021-05-11T08:32:12.126087Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
- [--] 3) 2021-05-09T10:09:05.539727Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.24' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server - GPL.
- [--] 4) 2021-05-09T10:09:05.320332Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
- [--] 5) 2021-05-09T10:06:21.411199Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.24' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server - GPL.
- [--] 6) 2021-05-09T10:06:02.553875Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
- [--] 7) 2021-03-03T09:28:58.408553Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.23' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server - GPL.
- [--] 8) 2021-03-03T09:28:57.145339Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
- [--] 9) 2021-02-09T12:39:03.202371Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.23' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server - GPL.
- [--] 10) 2021-02-09T12:39:03.033540Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
- [--] 92 shutdown(s) detected in /var/log/mysqld.log
- [--] 1) 2021-05-11T08:32:01.244619Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.24) MySQL Community Server - GPL.
- [--] 2) 2021-05-09T10:08:16.094767Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.24) MySQL Community Server - GPL.
- [--] 3) 2021-05-09T10:05:54.130971Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23) MySQL Community Server - GPL.
- [--] 4) 2021-03-03T09:28:49.348412Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23) MySQL Community Server - GPL.
- [--] 5) 2021-02-09T12:36:32.417994Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23) MySQL Community Server - GPL.
- [--] 6) 2021-02-09T12:34:31.303215Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.22) MySQL Community Server - GPL.
- [--] 7) 2021-02-04T08:30:50.740734Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.22) MySQL Community Server - GPL.
- [--] 8) 2021-01-13T07:51:18.048343Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.22) MySQL Community Server - GPL.
- [--] 9) 2020-12-14T10:00:52.508504Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.22) MySQL Community Server - GPL.
- [--] 10) 2020-11-18T11:29:53.051294Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.22) MySQL Community Server - GPL.
- -------- Storage Engine Statistics -----------------------------------------------------------------
- [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA
- [--] Data in MyISAM tables: 22.9M (Tables: 18)
- [--] Data in InnoDB tables: 59.0G (Tables: 402)
- [OK] Total fragmented tables: 0
- -------- 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: 24d 0h 2m 18s (85M q [41.280 qps], 1M conn, TX: 1062G, RX: 35G)
- [--] Reads / Writes: 85% / 15%
- [--] Binary logging is enabled (GTID MODE: OFF)
- [--] Physical Memory : 23.4G
- [--] Max MySQL memory : 16.9G
- [--] Other process memory: 0B
- [--] Total buffers: 16.0G global + 5.6M per thread (151 max threads)
- [--] P_S Max memory usage: 72B
- [--] Galera GCache Max memory usage: 0B
- [OK] Maximum reached memory usage: 16.1G (68.96% of installed RAM)
- [OK] Maximum possible memory usage: 16.9G (72.16% of installed RAM)
- [OK] Overall possible memory usage with other process is compatible with memory available
- [OK] Slow queries: 0% (0/85M)
- [OK] Highest usage of available connections: 9% (14/151)
- [OK] Aborted connections: 0.02% (322/1974426)
- [!!] 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
- [OK] Sorts requiring temporary tables: 3% (318K temp sorts / 8M sorts)
- [!!] Joins performed without indexes: 4665466
- [OK] Temporary tables created on disk: 0% (585 on disk / 13M total)
- [OK] Thread cache hit rate: 99% (14 created / 1M connections)
- [!!] Table cache hit rate: 0% (2K open / 1M opened)
- [OK] table_definition_cache(1400) is upper than number of tables(747)
- [OK] Open file limit used: 0% (2/10K)
- [OK] Table locks acquired immediately: 100% (143K immediate / 143K locks)
- [OK] Binlog cache memory access: 99.99% (6909316 Memory / 6910312 Total)
- -------- 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: 16.0G/59.0G
- [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: 100.00% (185116977940 hits/ 185118987101 total)
- [OK] InnoDB Write log efficiency: 91.75% (240921469 hits/ 262594002 total)
- [OK] InnoDB log waits: 0.00% (0 waits / 21672533 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:
- Control warning line(s) into /var/log/mysqld.log file
- Control error line(s) into /var/log/mysqld.log file
- 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).
- 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 (10000) variable
- should be greater than table_open_cache (2000)
- Variables to adjust:
- join_buffer_size (> 768.0K, or always use indexes with JOINs)
- table_open_cache (> 2000)
- innodb_buffer_pool_size (>= 59.0G) if possible.
Add Comment
Please, Sign In to add comment