Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> MySQLTuner 1.7.9 - 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.1.73
- [OK] Operating on 64-bit architecture
- -------- Log file Recommendations ------------------------------------------------------------------
- [--] Log file: /var/log/mysqld.log(1M)
- [OK] Log file /var/log/mysqld.log exists
- [OK] Log file /var/log/mysqld.log is readable.
- [OK] Log file /var/log/mysqld.log is not empty
- [OK] Log file /var/log/mysqld.log is smaller than 32 Mb
- [!!] /var/log/mysqld.log contains 35 warning(s).
- [!!] /var/log/mysqld.log contains 3988 error(s).
- [--] 59 start(s) detected in /var/log/mysqld.log
- [--] 1) 180822 1:51:10 [Note] /usr/libexec/mysqld: ready for connections.
- [--] 2) 180714 3:41:10 [Note] /usr/libexec/mysqld: ready for connections.
- [--] 3) 180601 1:24:35 [Note] /usr/libexec/mysqld: ready for connections.
- [--] 4) 180514 1:02:14 [Note] /usr/libexec/mysqld: ready for connections.
- [--] 5) 180326 1:41:37 [Note] /usr/libexec/mysqld: ready for connections.
- [--] 6) 180320 1:49:41 [Note] /usr/libexec/mysqld: ready for connections.
- [--] 7) 180308 1:18:52 [Note] /usr/libexec/mysqld: ready for connections.
- [--] 8) 180207 1:11:08 [Note] /usr/libexec/mysqld: ready for connections.
- [--] 9) 180122 1:26:23 [Note] /usr/libexec/mysqld: ready for connections.
- [--] 10) 180107 1:30:58 [Note] /usr/libexec/mysqld: ready for connections.
- [--] 59 shutdown(s) detected in /var/log/mysqld.log
- [--] 1) 180822 1:46:34 [Note] /usr/libexec/mysqld: Shutdown complete
- [--] 2) 180714 3:38:04 [Note] /usr/libexec/mysqld: Shutdown complete
- [--] 3) 180601 1:21:33 [Note] /usr/libexec/mysqld: Shutdown complete
- [--] 4) 180514 0:59:09 [Note] /usr/libexec/mysqld: Shutdown complete
- [--] 5) 180326 1:39:00 [Note] /usr/libexec/mysqld: Shutdown complete
- [--] 6) 180320 1:46:39 [Note] /usr/libexec/mysqld: Shutdown complete
- [--] 7) 180308 1:16:29 [Note] /usr/libexec/mysqld: Shutdown complete
- [--] 8) 180308 1:07:59 [Note] /usr/libexec/mysqld: Shutdown complete
- [--] 9) 180207 1:08:15 [Note] /usr/libexec/mysqld: Shutdown complete
- [--] 10) 180122 1:23:40 [Note] /usr/libexec/mysqld: Shutdown complete
- -------- Storage Engine Statistics -----------------------------------------------------------------
- [--] Status: +CSV +InnoDB +MRG_MYISAM
- [--] Data in MyISAM tables: 623.4M (Tables: 202)
- [--] Data in InnoDB tables: 9.6G (Tables: 2904)
- [--] Data in MEMORY tables: 51.2M (Tables: 102)
- [OK] Total fragmented tables: 0
- -------- Security Recommendations ------------------------------------------------------------------
- [OK] There are no anonymous accounts for any database users
- [OK] All database users have passwords assigned
- [!!] User 'anupam@%' does not specify hostname restrictions.
- [!!] User 'dev-3@%' does not specify hostname restrictions.
- [!!] User 'fcl-dev-2@%' does not specify hostname restrictions.
- [!!] User 'fcl-dev-4@%' does not specify hostname restrictions.
- [!!] User 'fcl-dev-5@%' does not specify hostname restrictions.
- [!!] User 'fcl-dev@%' does not specify hostname restrictions.
- [!!] User 'fcl@%' does not specify hostname restrictions.
- [!!] User 'magento_e@%' does not specify hostname restrictions.
- [!!] There is no basic password file list!
- -------- CVE Security Recommendations --------------------------------------------------------------
- [--] Skipped due to --cvefile option undefined
- -------- Performance Metrics -----------------------------------------------------------------------
- [--] Up for: 4d 18h 37m 12s (19M q [46.994 qps], 277K conn, TX: 30G, RX: 8G)
- [--] Reads / Writes: 86% / 14%
- [--] Binary logging is disabled
- [--] Physical Memory : 62.9G
- [--] Max MySQL memory : 26.6G
- [--] Other process memory: 1.8G
- [--] Total buffers: 16.4G global + 52.2M per thread (200 max threads)
- [--] P_S Max memory usage: 0B
- [--] Galera GCache Max memory usage: 0B
- [OK] Maximum reached memory usage: 16.9G (26.95% of installed RAM)
- [OK] Maximum possible memory usage: 26.6G (42.29% of installed RAM)
- [OK] Overall possible memory usage with other process is compatible with memory available
- [OK] Slow queries: 0% (4/19M)
- [OK] Highest usage of available connections: 5% (11/200)
- [OK] Aborted connections: 0.00% (1/277537)
- [!!] 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 / 13M selects)
- [OK] Query cache prunes per day: 0
- [OK] Sorts requiring temporary tables: 0% (165 temp sorts / 1M sorts)
- [!!] Joins performed without indexes: 71106
- [!!] Temporary tables created on disk: 71% (3M on disk / 4M total)
- [OK] Thread cache hit rate: 99% (1K created / 277K connections)
- [!!] Table cache hit rate: 0% (781 open / 85K opened)
- [OK] Open file limit used: 0% (105/65K)
- [OK] Table locks acquired immediately: 99% (22M immediate / 22M locks)
- -------- Performance schema ------------------------------------------------------------------------
- [--] Performance schema is disabled.
- [--] Memory used by P_S: 0B
- [--] Sys schema isn't installed.
- -------- ThreadPool Metrics ------------------------------------------------------------------------
- [--] ThreadPool stat is disabled.
- -------- MyISAM Metrics ----------------------------------------------------------------------------
- [!!] Key buffer used: 41.5% (27M used / 67M cache)
- [OK] Key buffer size / total MyISAM indexes: 64.0M/167.3M
- [OK] Read Key buffer hit rate: 99.7% (151M cached / 424K reads)
- [!!] Write Key buffer hit rate: 14.0% (8M cached / 1M writes)
- -------- InnoDB Metrics ----------------------------------------------------------------------------
- [--] InnoDB is enabled.
- [--] InnoDB Thread Concurrency: 10
- [!!] InnoDB File per table is not activated
- [OK] InnoDB buffer pool / data size: 16.0G/9.6G
- [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (3.125 %): 256.0M * 2/16.0G should be equal 25%
- [--] InnoDB Buffer Pool Chunk Size not used or defined in your version
- [OK] InnoDB Read buffer efficiency: 100.00% (7294973329 hits/ 7295148290 total)
- [OK] InnoDB Write log efficiency: 93.98% (15234542 hits/ 16209739 total)
- [!!] InnoDB log waits: 0.01% (78 waits / 975197 writes)
- -------- AriaDB Metrics ----------------------------------------------------------------------------
- [--] AriaDB is disabled.
- -------- TokuDB Metrics ----------------------------------------------------------------------------
- [--] TokuDB is disabled.
- -------- XtraDB Metrics ----------------------------------------------------------------------------
- [--] XtraDB is disabled.
- -------- RocksDB Metrics ---------------------------------------------------------------------------
- [--] RocksDB is disabled.
- -------- Spider Metrics ----------------------------------------------------------------------------
- [--] Spider is disabled.
- -------- Connect Metrics ---------------------------------------------------------------------------
- [--] Connect 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/mysqld.log file
- Control error line(s) into /var/log/mysqld.log file
- Restrict Host for user@% to user@SpecificDNSorIp
- 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
- Adjust your join queries to always utilize indexes
- Temporary table size is already large - reduce result set size
- Reduce your SELECT DISTINCT queries without LIMIT clauses
- Increase table_open_cache gradually to avoid file descriptor limits
- Read this before increasing table_open_cache over 64: http://bit.ly/1mi7c4C
- 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 (65535) variable
- should be greater than table_open_cache (2000)
- Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: http://bit.ly/2wgkDvS
- Variables to adjust:
- query_cache_size (=0)
- query_cache_type (=0)
- query_cache_limit (> 2M, or use smaller result sets)
- join_buffer_size (> 16.0M, or always use indexes with JOINs)
- table_open_cache (> 2000)
- innodb_file_per_table=ON
- innodb_log_file_size should be (=2G) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
- innodb_log_buffer_size (>= 8M)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement