>> 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
[OK] Currently running supported MySQL version 5.6.45-86.1-log
[OK] Operating on 64-bit architecture
-------- Log file Recommendations ------------------------------------------------------------------
[OK] Log file /var/lib/mysql/esm1523.sgded.com.err exists
[--] Log file: /var/lib/mysql/esm1523.sgded.com.err(3M)
[OK] Log file /var/lib/mysql/esm1523.sgded.com.err is readable.
[OK] Log file /var/lib/mysql/esm1523.sgded.com.err is not empty
[OK] Log file /var/lib/mysql/esm1523.sgded.com.err is smaller than 32 Mb
[!!] /var/lib/mysql/esm1523.sgded.com.err contains 4541 warning(s).
[!!] /var/lib/mysql/esm1523.sgded.com.err contains 941 error(s).
[--] 6 start(s) detected in /var/lib/mysql/esm1523.sgded.com.err
[--] 1) 2019-10-27 07:48:16 25458 [Note] /usr/sbin/mysqld: ready for connections.
[--] 2) 2019-10-27 05:08:20 5504 [Note] /usr/sbin/mysqld: ready for connections.
[--] 3) 2019-09-08 11:52:59 19116 [Note] /usr/sbin/mysqld: ready for connections.
[--] 4) 2019-09-08 11:19:50 30001 [Note] /usr/sbin/mysqld: ready for connections.
[--] 5) 2019-09-08 10:55:20 9691 [Note] /usr/sbin/mysqld: ready for connections.
[--] 6) 2019-09-08 10:52:08 8083 [Note] /usr/sbin/mysqld: ready for connections.
[--] 5 shutdown(s) detected in /var/lib/mysql/esm1523.sgded.com.err
[--] 1) 2019-10-27 07:48:13 5504 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 2) 2019-10-27 05:09:58 6381 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 3) 2019-09-08 11:52:58 30001 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 4) 2019-09-08 11:19:17 9691 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 5) 2019-09-08 10:52:16 8083 [Note] /usr/sbin/mysqld: Shutdown complete
-------- Storage Engine Statistics -----------------------------------------------------------------
[--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA
[--] Data in MyISAM tables: 308.7K (Tables: 73)
[--] Data in InnoDB tables: 4.0G (Tables: 3878)
[--] Data in MEMORY tables: 9.6M (Tables: 165)
[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
[!!] There is no basic password file list!
-------- CVE Security Recommendations --------------------------------------------------------------
[--] Skipped due to --cvefile option undefined
-------- Performance Metrics -----------------------------------------------------------------------
[--] Up for: 78d 18h 19m 33s (6B q [988.510 qps], 18M conn, TX: 7197G, RX: 1607G)
[--] Reads / Writes: 67% / 33%
[--] Binary logging is disabled
[--] Physical Memory : 31.3G
[--] Max MySQL memory : 28.7G
[--] Other process memory: 0B
[--] Total buffers: 2.8G global + 52.2M per thread (500 max threads)
[--] P_S Max memory usage: 466M
[--] Galera GCache Max memory usage: 0B
[OK] Maximum reached memory usage: 11.0G (35.25% of installed RAM)
[!!] Maximum possible memory usage: 28.7G (91.77% of installed RAM)
[OK] Overall possible memory usage with other process is compatible with memory available
[OK] Slow queries: 0% (170K/6B)
[OK] Highest usage of available connections: 30% (153/500)
[OK] Aborted connections: 0.53% (100150/18744441)
[!!] 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.
[OK] Query cache efficiency: 97.4% (6B cached / 6B selects)
[!!] Query cache prunes per day: 149196
[OK] Sorts requiring temporary tables: 0% (7K temp sorts / 83M sorts)
[!!] Joins performed without indexes: 10706241
[OK] Temporary tables created on disk: 12% (16M on disk / 134M total)
[OK] Thread cache hit rate: 99% (153 created / 18M connections)
[!!] Table cache hit rate: 0% (2K open / 6M opened)
[!!] table_definition_cache(1400) is lower than number of tables(4268)
[OK] Open file limit used: 3% (193/5K)
[OK] Table locks acquired immediately: 99% (617M immediate / 617M locks)
-------- Performance schema ------------------------------------------------------------------------
[--] Memory used by P_S: 466.5M
[--] Sys schema isn't installed.
-------- ThreadPool Metrics ------------------------------------------------------------------------
[--] ThreadPool stat is enabled.
[--] Thread Pool Size: 8 thread(s).
[!!] thread_pool_size between 16 and 36 when using InnoDB storage engine.
-------- MyISAM Metrics ----------------------------------------------------------------------------
[!!] Key buffer used: 18.2% (97M used / 536M cache)
[OK] Key buffer size / total MyISAM indexes: 512.0M/331.0K
[OK] Read Key buffer hit rate: 100.0% (382M cached / 1K reads)
[!!] Write Key buffer hit rate: 0.0% (88M cached / 41 writes)
-------- InnoDB Metrics ----------------------------------------------------------------------------
[--] InnoDB is enabled.
[--] InnoDB Thread Concurrency: 4
[OK] InnoDB File per table is activated
[!!] InnoDB buffer pool / data size: 256.0M/4.0G
[!!] Ratio InnoDB log file size / InnoDB Buffer pool size (37.5 %): 48.0M * 2/256.0M should be equal to 25%
[!!] InnoDB buffer pool <= 1G and Innodb_buffer_pool_instances(!=1).
[--] InnoDB Buffer Pool Chunk Size not used or defined in your version
[OK] InnoDB Read buffer efficiency: 99.99% (782722689510 hits/ 782765202926 total)
[!!] InnoDB Write Log efficiency: 87.08% (551919241 hits/ 633777228 total)
[!!] InnoDB log waits: 0.00% (87 waits / 81857987 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: STATEMENT
[--] XA support enabled: OFF
[--] 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/lib/mysql/esm1523.sgded.com.err file
Control error line(s) into /var/lib/mysql/esm1523.sgded.com.err file
Reduce your overall MySQL memory footprint for system stability
Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
Increasing the query_cache size over 128M may reduce performance
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 (5000) variable
should be greater than table_open_cache (2000)
Consider installing Sys schema from https://github.com/mysql/mysql-sys for MySQL
Consider installing Sys schema from https://github.com/FromDual/mariadb-sys for MariaDB
Thread pool size for InnoDB usage (8)
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 ***
query_cache_size (=0)
query_cache_type (=0)
query_cache_size (> 2G) [see warning above]
join_buffer_size (> 4.0M, or always use indexes with JOINs)
table_open_cache (> 2000)
table_definition_cache(1400) > 4268 or -1 (autosizing if supported)
thread_pool_size between 16 and 36 for InnoDB usage
innodb_buffer_pool_size (>= 4.0G) if possible.
innodb_log_file_size should be (=32M) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
innodb_buffer_pool_instances (=1)
innodb_log_buffer_size (>= 8M)