Advertisement
Craetive

Untitled

Jun 2nd, 2020
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 9.55 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. [!!] Your MySQL version 5.5.65-MariaDB is EOL software!  Upgrade soon!
  7. [OK] Operating on 64-bit architecture
  8.  
  9. -------- Log file Recommendations ------------------------------------------------------------------
  10. [OK] Log file /var/log/mariadb/mariadb.log exists
  11. [--] Log file: /var/log/mariadb/mariadb.log(71K)
  12. [OK] Log file /var/log/mariadb/mariadb.log is readable.
  13. [OK] Log file /var/log/mariadb/mariadb.log is not empty
  14. [OK] Log file /var/log/mariadb/mariadb.log is smaller than 32 Mb
  15. [!!] /var/log/mariadb/mariadb.log contains 10 warning(s).
  16. [!!] /var/log/mariadb/mariadb.log contains 78 error(s).
  17. [--] 36 start(s) detected in /var/log/mariadb/mariadb.log
  18. [--] 1) 200531 22:21:29 [Note] /usr/libexec/mysqld: ready for connections.
  19. [--] 2) 200531 22:17:36 [Note] /usr/libexec/mysqld: ready for connections.
  20. [--] 3) 200529 19:47:15 [Note] /usr/libexec/mysqld: ready for connections.
  21. [--] 4) 200529 19:24:24 [Note] /usr/libexec/mysqld: ready for connections.
  22. [--] 5) 200529 19:15:13 [Note] /usr/libexec/mysqld: ready for connections.
  23. [--] 6) 200529 17:31:41 [Note] /usr/libexec/mysqld: ready for connections.
  24. [--] 7) 200529 17:31:00 [Note] /usr/libexec/mysqld: ready for connections.
  25. [--] 8) 200529 17:28:19 [Note] /usr/libexec/mysqld: ready for connections.
  26. [--] 9) 200529 17:25:48 [Note] /usr/libexec/mysqld: ready for connections.
  27. [--] 10) 200529 17:24:21 [Note] /usr/libexec/mysqld: ready for connections.
  28. [--] 49 shutdown(s) detected in /var/log/mariadb/mariadb.log
  29. [--] 1) 200531 22:21:23 [Note] /usr/libexec/mysqld: Shutdown complete
  30. [--] 2) 200531 22:21:16 [Note] /usr/libexec/mysqld: Shutdown complete
  31. [--] 3) 200531 22:21:09 [Note] /usr/libexec/mysqld: Shutdown complete
  32. [--] 4) 200531 22:21:02 [Note] /usr/libexec/mysqld: Shutdown complete
  33. [--] 5) 200531 22:20:54 [Note] /usr/libexec/mysqld: Shutdown complete
  34. [--] 6) 200531 22:20:48 [Note] /usr/libexec/mysqld: Shutdown complete
  35. [--] 7) 200531 22:20:41 [Note] /usr/libexec/mysqld: Shutdown complete
  36. [--] 8) 200531 22:20:33 [Note] /usr/libexec/mysqld: Shutdown complete
  37. [--] 9) 200531 22:20:27 [Note] /usr/libexec/mysqld: Shutdown complete
  38. [--] 10) 200531 22:20:26 [Note] /usr/libexec/mysqld: Shutdown complete
  39.  
  40. -------- Storage Engine Statistics -----------------------------------------------------------------
  41. [--] Status: +ARCHIVE +Aria +BLACKHOLE +CSV +FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA
  42. [--] Data in MyISAM tables: 7.9G (Tables: 222)
  43. [--] Data in InnoDB tables: 12.1G (Tables: 346)
  44. [OK] Total fragmented tables: 0
  45.  
  46. -------- Analysis Performance Metrics --------------------------------------------------------------
  47. [--] innodb_stats_on_metadata: ON
  48. [!!] Stat are updated during querying INFORMATION_SCHEMA.
  49.  
  50. -------- Security Recommendations ------------------------------------------------------------------
  51. [OK] There are no anonymous accounts for any database users
  52. [OK] All database users have passwords assigned
  53. [!!] There is no basic password file list!
  54.  
  55. -------- CVE Security Recommendations --------------------------------------------------------------
  56. [--] Skipped due to --cvefile option undefined
  57.  
  58. -------- Performance Metrics -----------------------------------------------------------------------
  59. [--] Up for: 1d 17h 35m 3s (1M q [7.956 qps], 55K conn, TX: 20G, RX: 87M)
  60. [--] Reads / Writes: 84% / 16%
  61. [--] Binary logging is disabled
  62. [--] Physical Memory     : 3.7G
  63. [--] Max MySQL memory    : 4.8G
  64. [--] Other process memory: 0B
  65. [--] Total buffers: 4.3G global + 3.8M per thread (151 max threads)
  66. [--] P_S Max memory usage: 0B
  67. [--] Galera GCache Max memory usage: 0B
  68. [!!] Maximum reached memory usage: 4.3G (116.89% of installed RAM)
  69. [!!] Maximum possible memory usage: 4.8G (130.76% of installed RAM)
  70. [!!] Overall possible memory usage with other process exceeded memory
  71. [OK] Slow queries: 0% (17/1M)
  72. [OK] Highest usage of available connections: 7% (12/151)
  73. [OK] Aborted connections: 0.00%  (1/55834)
  74. [!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
  75. [!!] Query cache may be disabled by default due to mutex contention.
  76. [!!] Query cache efficiency: 0.0% (0 cached / 582K selects)
  77. [OK] Query cache prunes per day: 0
  78. [OK] Sorts requiring temporary tables: 0% (9 temp sorts / 1K sorts)
  79. [OK] No joins without indexes
  80. [!!] Temporary tables created on disk: 99% (376K on disk / 379K total)
  81. [!!] Thread cache is disabled
  82. [!!] Table cache hit rate: 9% (400 open / 4K opened)
  83. [!!] table_definition_cache(400) is lower than number of tables(671)
  84. [OK] Open file limit used: 9% (93/962)
  85. [OK] Table locks acquired immediately: 100% (744K immediate / 744K locks)
  86.  
  87. -------- Performance schema ------------------------------------------------------------------------
  88. [--] Performance schema is disabled.
  89. [--] Memory used by P_S: 0B
  90. [--] Sys schema isn't installed.
  91.  
  92. -------- ThreadPool Metrics ------------------------------------------------------------------------
  93. [--] ThreadPool stat is enabled.
  94. [--] Thread Pool Size: 2 thread(s).
  95. [--] Using default value is good enough for your version (5.5.65-MariaDB)
  96.  
  97. -------- MyISAM Metrics ----------------------------------------------------------------------------
  98. [!!] Key buffer used: 18.2% (781M used / 4B cache)
  99. [!!] Key buffer size / total MyISAM indexes: 4.0G/4.3G
  100. [!!] Read Key buffer hit rate: 86.1% (2M cached / 379K reads)
  101. [OK] Write Key buffer hit rate: 99.2% (238 cached / 236 writes)
  102.  
  103. -------- InnoDB Metrics ----------------------------------------------------------------------------
  104. [--] InnoDB is enabled.
  105. [--] InnoDB Thread Concurrency: 0
  106. [!!] InnoDB File per table is not activated
  107. [!!] InnoDB buffer pool / data size: 128.0M/12.1G
  108. [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (7.8125 %): 5.0M * 2/128.0M should be equal to 25%
  109. [OK] InnoDB buffer pool instances: 1
  110. [--] InnoDB Buffer Pool Chunk Size not used or defined in your version
  111. [OK] InnoDB Read buffer efficiency: 99.94% (45432893 hits/ 45458201 total)
  112. [!!] InnoDB Write Log efficiency: 65.51% (2397 hits/ 3659 total)
  113. [OK] InnoDB log waits: 0.00% (0 waits / 6056 writes)
  114.  
  115. -------- AriaDB Metrics ----------------------------------------------------------------------------
  116. [--] AriaDB is enabled.
  117. [OK] Aria pagecache size / total Aria indexes: 128.0M/1B
  118. [!!] Aria pagecache hit rate: 33.0% (264 cached / 177 reads)
  119.  
  120. -------- TokuDB Metrics ----------------------------------------------------------------------------
  121. [--] TokuDB is disabled.
  122.  
  123. -------- XtraDB Metrics ----------------------------------------------------------------------------
  124. [--] XtraDB is disabled.
  125.  
  126. -------- Galera Metrics ----------------------------------------------------------------------------
  127. [--] Galera is disabled.
  128.  
  129. -------- Replication Metrics -----------------------------------------------------------------------
  130. [--] Galera Synchronous replication: NO
  131. [--] No replication slave(s) for this server.
  132. [--] Binlog format: STATEMENT
  133. [--] XA support enabled: ON
  134. [--] Semi synchronous replication Master: Not Activated
  135. [--] Semi synchronous replication Slave: Not Activated
  136. [--] This is a standalone server
  137.  
  138. -------- Recommendations ---------------------------------------------------------------------------
  139. General recommendations:
  140.    Control warning line(s) into /var/log/mariadb/mariadb.log file
  141.    Control error line(s) into /var/log/mariadb/mariadb.log file
  142.    Reduce your overall MySQL memory footprint for system stability
  143.    Dedicate this server to your database for highest performance.
  144.    Enable the slow query log to troubleshoot bad queries
  145.    Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
  146.    When making adjustments, make tmp_table_size/max_heap_table_size equal
  147.    Reduce your SELECT DISTINCT queries which have no LIMIT clause
  148.    Set thread_cache_size to 4 as a starting value
  149.    Increase table_open_cache gradually to avoid file descriptor limits
  150.    Read this before increasing table_open_cache over 64: https://bit.ly/2Fulv7r
  151.    Read this before increasing for MariaDB https://mariadb.com/kb/en/library/optimizing-table_open_cache/
  152.    This is MyISAM only table_cache scalability problem, InnoDB not affected.
  153.    See more details here: https://bugs.mysql.com/bug.php?id=49177
  154.    This bug already fixed in MySQL 5.7.9 and newer MySQL versions.
  155.    Beware that open_files_limit (962) variable
  156.    should be greater than table_open_cache (400)
  157.    For MySQL 5.6.2 and lower, Max combined innodb_log_file_size should have a ceiling of (4096MB / log files in group) - 1MB.
  158.    Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: https://bit.ly/2TcGgtU
  159. Variables to adjust:
  160.  *** MySQL's maximum memory usage is dangerously high ***
  161.   *** Add RAM before increasing MySQL buffer variables ***
  162.     SET innodb_stats_on_metadata = OFF
  163.     query_cache_size (=0)
  164.     query_cache_type (=0)
  165.     query_cache_limit (> 1M, or use smaller result sets)
  166.     tmp_table_size (> 16M)
  167.     max_heap_table_size (> 16M)
  168.     thread_cache_size (start at 4)
  169.     table_open_cache (> 400)
  170.     table_definition_cache(400) > 671 or -1 (autosizing if supported)
  171.     key_buffer_size (> 4.3G)
  172.     innodb_file_per_table=ON
  173.     innodb_buffer_pool_size (>= 12.1G) if possible.
  174.     innodb_log_file_size should be (=16M) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement