Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.59 KB | None | 0 0
  1. >> MySQLTuner 1.7.19 - Major Hayden <major@mhtx.net>
  2. >> Bug reports, feature requests, and downloads at http://mysqltuner.com/
  3. >> Run with '--help' for additional options and output filtering
  4.  
  5. [--] Skipped version check for MySQLTuner script
  6. [--] Performing tests on 127.0.0.1:3306
  7. Please enter your MySQL administrative login: root
  8. Please enter your MySQL administrative password: [OK] Currently running supported MySQL version 10.3.15-MariaDB
  9. [OK] Operating on 64-bit architecture
  10.  
  11. -------- Log file Recommendations ------------------------------------------------------------------
  12. [OK] Log file /var/log/mysql/error.log exists
  13. [--] Log file: /var/log/mysql/error.log(350M)
  14. [OK] Log file /var/log/mysql/error.log is readable.
  15. [OK] Log file /var/log/mysql/error.log is not empty
  16. [!!] Log file /var/log/mysql/error.log is bigger than 32 Mb
  17. [!!] /var/log/mysql/error.log contains 3105917 warning(s).
  18. [!!] /var/log/mysql/error.log contains 401272 error(s).
  19. [--] 21 start(s) detected in /var/log/mysql/error.log
  20. [--] 1) 2019-11-20 0:08:52 0 [Note] /usr/sbin/mysqld: ready for connections.
  21. [--] 2) 2019-10-05 10:15:23 0 [Note] /usr/sbin/mysqld: ready for connections.
  22. [--] 3) 2019-09-11 15:55:03 0 [Note] /usr/sbin/mysqld: ready for connections.
  23. [--] 4) 2019-09-11 13:44:01 0 [Note] /usr/sbin/mysqld: ready for connections.
  24. [--] 5) 2019-07-31 19:15:35 0 [Note] /usr/sbin/mysqld: ready for connections.
  25. [--] 6) 2019-06-18 21:44:33 0 [Note] /usr/sbin/mysqld: ready for connections.
  26. [--] 7) 2019-06-17 23:23:59 0 [Note] /usr/sbin/mysqld: ready for connections.
  27. [--] 8) 2019-06-15 12:01:51 0 [Note] /usr/sbin/mysqld: ready for connections.
  28. [--] 9) 2019-06-14 12:03:45 0 [Note] /usr/sbin/mysqld: ready for connections.
  29. [--] 10) 2019-06-13 23:25:46 0 [Note] /usr/sbin/mysqld: ready for connections.
  30. [--] 19 shutdown(s) detected in /var/log/mysql/error.log
  31. [--] 1) 2019-11-20 0:08:47 0 [Note] /usr/sbin/mysqld: Shutdown complete
  32. [--] 2) 2019-10-05 10:14:30 0 [Note] /usr/sbin/mysqld: Shutdown complete
  33. [--] 3) 2019-09-11 15:54:58 0 [Note] /usr/sbin/mysqld: Shutdown complete
  34. [--] 4) 2019-09-11 13:41:26 0 [Note] /usr/sbin/mysqld: Shutdown complete
  35. [--] 5) 2019-07-31 18:58:49 0 [Note] /usr/sbin/mysqld: Shutdown complete
  36. [--] 6) 2019-06-18 21:41:49 0 [Note] /usr/sbin/mysqld: Shutdown complete
  37. [--] 7) 2019-06-17 23:22:44 0 [Note] /usr/sbin/mysqld: Shutdown complete
  38. [--] 8) 2019-06-15 12:01:47 0 [Note] /usr/sbin/mysqld: Shutdown complete
  39. [--] 9) 2019-06-14 12:03:42 0 [Note] /usr/sbin/mysqld: Shutdown complete
  40. [--] 10) 2019-06-13 23:22:54 0 [Note] /usr/sbin/mysqld: Shutdown complete
  41.  
  42. -------- Storage Engine Statistics -----------------------------------------------------------------
  43. [--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE
  44. [--] Data in MyISAM tables: 6.2M (Tables: 117)
  45. [--] Data in InnoDB tables: 38.8G (Tables: 316)
  46. [!!] Total fragmented tables: 1
  47.  
  48. -------- Analysis Performance Metrics --------------------------------------------------------------
  49. [--] innodb_stats_on_metadata: OFF
  50. [OK] No stat updates during querying INFORMATION_SCHEMA.
  51.  
  52. -------- Security Recommendations ------------------------------------------------------------------
  53. [OK] There are no anonymous accounts for any database users
  54. [OK] All database users have passwords assigned
  55. [!!] User 'xxxxxxxx@%' does not specify hostname restrictions.
  56. [!!] User 'xxxxxxxx@%' does not specify hostname restrictions.
  57. [!!] User 'root@%' does not specify hostname restrictions.
  58. [!!] User 'xxxxxxxx@%' does not specify hostname restrictions.
  59. [!!] User 'xxxxxxxx@%' does not specify hostname restrictions.
  60. [--] There are 620 basic passwords in the list.
  61.  
  62. -------- CVE Security Recommendations --------------------------------------------------------------
  63. [OK] NO SECURITY CVE FOUND FOR YOUR VERSION
  64.  
  65. -------- Performance Metrics -----------------------------------------------------------------------
  66. [--] Up for: 65d 23h 26m 6s (4B q [782.794 qps], 212M conn, TX: 40826G, RX: 572G)
  67. [--] Reads / Writes: 96% / 4%
  68. [--] Binary logging is disabled
  69. [--] Physical Memory : 15.5G
  70. [--] Max MySQL memory : 23.5G
  71. [--] Other process memory: 0B
  72. [--] Total buffers: 8.5G global + 30.6M per thread (500 max threads)
  73. [--] P_S Max memory usage: 0B
  74. [--] Galera GCache Max memory usage: 0B
  75. [!!] Maximum reached memory usage: 17.5G (113.01% of installed RAM)
  76. [!!] Maximum possible memory usage: 23.5G (151.30% of installed RAM)
  77. [!!] Overall possible memory usage with other process exceeded memory
  78. [OK] Slow queries: 0% (3K/4B)
  79. [OK] Highest usage of available connections: 60% (301/500)
  80. [OK] Aborted connections: 0.04% (93147/212540381)
  81. [!!] Query cache may be disabled by default due to mutex contention.
  82. [OK] Query cache efficiency: 24.0% (1B cached / 5B selects)
  83. [!!] Query cache prunes per day: 183329
  84. [OK] Sorts requiring temporary tables: 0% (53 temp sorts / 292M sorts)
  85. [!!] Joins performed without indexes: 52622
  86. [OK] Temporary tables created on disk: 0% (322K on disk / 34M total)
  87. [OK] Thread cache hit rate: 96% (7M created / 212M connections)
  88. [OK] Table cache hit rate: 70% (4K open / 5K opened)
  89. [!!] table_definition_cache(400) is lower than number of tables(598)
  90. [OK] Open file limit used: 1% (269/16K)
  91. [OK] Table locks acquired immediately: 100% (8M immediate / 8M locks)
  92.  
  93. -------- Performance schema ------------------------------------------------------------------------
  94. [--] Performance schema is disabled.
  95. [--] Memory used by P_S: 0B
  96. [--] Sys schema isn't installed.
  97.  
  98. -------- ThreadPool Metrics ------------------------------------------------------------------------
  99. [--] ThreadPool stat is enabled.
  100. [--] Thread Pool Size: 8 thread(s).
  101. [--] Using default value is good enough for your version (10.3.15-MariaDB)
  102.  
  103. -------- MyISAM Metrics ----------------------------------------------------------------------------
  104. [!!] Key buffer used: 18.6% (3M used / 16M cache)
  105. [OK] Key buffer size / total MyISAM indexes: 16.0M/2.8M
  106. [OK] Read Key buffer hit rate: 100.0% (16M cached / 49 reads)
  107. [!!] Write Key buffer hit rate: 75.5% (155 cached / 117 writes)
  108.  
  109. -------- InnoDB Metrics ----------------------------------------------------------------------------
  110. [--] InnoDB is enabled.
  111. [--] InnoDB Thread Concurrency: 0
  112. [OK] InnoDB File per table is activated
  113. [!!] InnoDB buffer pool / data size: 8.2G/38.8G
  114. [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (48.4848484848485 %): 2.0G * 2/8.2G should be equal to 25%
  115. [!!] InnoDB buffer pool instances: 6
  116. [--] Number of InnoDB Buffer Pool Chunk : 66 for 6 Buffer Pool Instance(s)
  117. [OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
  118. [OK] InnoDB Read buffer efficiency: 100.00% (1142523932247 hits/ 1142567012459 total)
  119. [OK] InnoDB Write log efficiency: 98.05% (334204576 hits/ 340844667 total)
  120. [OK] InnoDB log waits: 0.00% (0 waits / 6640091 writes)
  121.  
  122. -------- AriaDB Metrics ----------------------------------------------------------------------------
  123. [--] AriaDB is enabled.
  124. [OK] Aria pagecache size / total Aria indexes: 128.0M/1B
  125. [OK] Aria pagecache hit rate: 100.0% (459M cached / 83K reads)
  126.  
  127. -------- TokuDB Metrics ----------------------------------------------------------------------------
  128. [--] TokuDB is disabled.
  129.  
  130. -------- XtraDB Metrics ----------------------------------------------------------------------------
  131. [--] XtraDB is disabled.
  132.  
  133. -------- Galera Metrics ----------------------------------------------------------------------------
  134. [--] Galera is disabled.
  135.  
  136. -------- Replication Metrics -----------------------------------------------------------------------
  137. [--] Galera Synchronous replication: NO
  138. [--] No replication slave(s) for this server.
  139. [--] Binlog format: MIXED
  140. [--] XA support enabled: ON
  141. [--] Semi synchronous replication Master: OFF
  142. [--] Semi synchronous replication Slave: OFF
  143. [--] This is a standalone server
  144.  
  145. -------- Recommendations ---------------------------------------------------------------------------
  146. General recommendations:
  147. /var/log/mysql/error.log is > 32Mb, you should analyze why or implement a rotation log strategy such as logrotate!
  148. Control warning line(s) into /var/log/mysql/error.log file
  149. Control error line(s) into /var/log/mysql/error.log file
  150. Run OPTIMIZE TABLE to defragment tables for better performance
  151. OPTIMIZE TABLE `xxxxxxxx`.`xxxxxxxx`; -- can free 1902 MB
  152. Total freed space after theses OPTIMIZE TABLE : 1902 Mb
  153. Restrict Host for 'xxxxxxxx'@% to xxxxxxxx@SpecificDNSorIp
  154. UPDATE mysql.user SET host ='SpecificDNSorIp' WHERE user='xxxxxxxx' AND host ='%'; FLUSH PRIVILEGES;
  155. Restrict Host for 'xxxxxxxx'@% to xxxxxxxx@SpecificDNSorIp
  156. UPDATE mysql.user SET host ='SpecificDNSorIp' WHERE user='xxxxxxxx' AND host ='%'; FLUSH PRIVILEGES;
  157. Restrict Host for 'root'@% to root@SpecificDNSorIp
  158. UPDATE mysql.user SET host ='SpecificDNSorIp' WHERE user='root' AND host ='%'; FLUSH PRIVILEGES;
  159. Restrict Host for 'xxxxxxxx'@% to xxxxxxxx@SpecificDNSorIp
  160. UPDATE mysql.user SET host ='SpecificDNSorIp' WHERE user='xxxxxxxx' AND host ='%'; FLUSH PRIVILEGES;
  161. Restrict Host for 'xxxxxxxx'@% to xxxxxxxx@SpecificDNSorIp
  162. UPDATE mysql.user SET host ='SpecificDNSorIp' WHERE user='xxxxxxxx' AND host ='%'; FLUSH PRIVILEGES;
  163. Reduce your overall MySQL memory footprint for system stability
  164. Dedicate this server to your database for highest performance.
  165. Increasing the query_cache size over 128M may reduce performance
  166. We will suggest raising the 'join_buffer_size' until JOINs not using indexes are found.
  167. See https://dev.mysql.com/doc/internals/en/join-buffer-size.html
  168. (specially the conclusions at the bottom of the page).
  169. Performance schema should be activated for better diagnostics
  170. Consider installing Sys schema from https://github.com/mysql/mysql-sys for MySQL
  171. Consider installing Sys schema from https://github.com/FromDual/mariadb-sys for MariaDB
  172. Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: https://bit.ly/2TcGgtU
  173. Variables to adjust:
  174. *** MySQL's maximum memory usage is dangerously high ***
  175. *** Add RAM before increasing MySQL buffer variables ***
  176. query_cache_size (=0)
  177. query_cache_type (=0)
  178. query_cache_size (> 128M) [see warning above]
  179. join_buffer_size (> 4.0M, or always use indexes with JOINs)
  180. table_definition_cache(400) > 598 or -1 (autosizing if supported)
  181. performance_schema = ON enable PFS
  182. innodb_buffer_pool_size (>= 38.8G) if possible.
  183. innodb_log_file_size should be (=1G) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
  184. innodb_buffer_pool_instances(=8)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement