hcow

Untitled

Oct 22nd, 2021
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.94 KB | None | 0 0
  1. [--] Skipped version check for MySQLTuner script
  2. [--] Performing tests on 127.0.0.1:3306
  3. [OK] Logged in using credentials from Debian maintenance account.
  4. [OK] Currently running supported MySQL version 5.7.34-0ubuntu0.18.04.1
  5. [OK] Operating on 64-bit architecture
  6.  
  7. -------- Log file Recommendations ------------------------------------------------------------------
  8. [OK] Log file /var/log/mysql/error.log exists
  9. [--] Log file: /var/log/mysql/error.log(61K)
  10. [OK] Log file /var/log/mysql/error.log is not empty
  11. [OK] Log file /var/log/mysql/error.log is smaller than 32 Mb
  12. [OK] Log file /var/log/mysql/error.log is readable.
  13. [!!] /var/log/mysql/error.log contains 4 warning(s).
  14. [!!] /var/log/mysql/error.log contains 7 error(s).
  15. [--] 0 start(s) detected in /var/log/mysql/error.log
  16. [--] 0 shutdown(s) detected in /var/log/mysql/error.log
  17.  
  18. -------- Storage Engine Statistics -----------------------------------------------------------------
  19. [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA
  20. [--] Data in InnoDB tables: 1.9G (Tables: 40)
  21. [--] Data in MyISAM tables: 8.1M (Tables: 1)
  22. [OK] Total fragmented tables: 0
  23.  
  24. -------- Analysis Performance Metrics --------------------------------------------------------------
  25. [--] innodb_stats_on_metadata: OFF
  26. [OK] No stat updates during querying INFORMATION_SCHEMA.
  27.  
  28. -------- Security Recommendations ------------------------------------------------------------------
  29. [OK] There are no anonymous accounts for any database users
  30. [OK] All database users have passwords assigned
  31. [--] Bug #80860 MySQL 5.7: Avoid testing password when validate_password is activated
  32.  
  33. -------- CVE Security Recommendations --------------------------------------------------------------
  34. [!!] 6 CVE(s) found for your MySQL release.
  35.  
  36. -------- Performance Metrics -----------------------------------------------------------------------
  37. [--] Up for: 120d 21h 0m 13s (1B q [120.271 qps], 39M conn, TX: 3674G, RX: 250G)
  38. [--] Reads / Writes: 98% / 2%
  39. [--] Binary logging is disabled
  40. [--] Physical Memory : 62.9G
  41. [--] Max MySQL memory : 2002.3G
  42. [--] Other process memory: 0B
  43. [--] Total buffers: 192.0M global + 1.0G per thread (2000 max threads)
  44. [--] P_S Max memory usage: 72B
  45. [--] Galera GCache Max memory usage: 0B
  46. [!!] Maximum reached memory usage: 188.4G (299.43% of installed RAM)
  47. [!!] Maximum possible memory usage: 2002.3G (3182.59% of installed RAM)
  48. [!!] Overall possible memory usage with other process exceeded memory
  49. [OK] Slow queries: 0% (0/1B)
  50. [OK] Highest usage of available connections: 9% (188/2000)
  51. [OK] Aborted connections: 0.07% (29105/39297599)
  52. [!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
  53. [OK] Query cache is disabled by default due to mutex contention on multiprocessor machines.
  54. [OK] Sorts requiring temporary tables: 0% (340K temp sorts / 258M sorts)
  55. [!!] Joins performed without indexes: 12229301
  56. [!!] Temporary tables created on disk: 34% (33M on disk / 98M total)
  57. [OK] Thread cache hit rate: 98% (644K created / 39M connections)
  58. [OK] Table cache hit rate: 99% (3B hits / 3B requests)
  59. [OK] table_definition_cache(1147) is upper than number of tables(320)
  60. [OK] Open file limit used: 0% (10/5K)
  61. [OK] Table locks acquired immediately: 100% (4K immediate / 4K locks)
  62.  
  63. -------- Performance schema ------------------------------------------------------------------------
  64. [--] Memory used by P_S: 72B
  65. [--] Sys schema is installed.
  66.  
  67. -------- ThreadPool Metrics ------------------------------------------------------------------------
  68. [--] ThreadPool stat is disabled.
  69.  
  70. -------- MyISAM Metrics ----------------------------------------------------------------------------
  71. [!!] Key buffer used: 18.2% (3M used / 16M cache)
  72. [OK] Key buffer size / total MyISAM indexes: 16.0M/2.4M
  73. [OK] Read Key buffer hit rate: 96.3% (1K cached / 53 reads)
  74.  
  75. -------- InnoDB Metrics ----------------------------------------------------------------------------
  76. [--] InnoDB is enabled.
  77. [--] InnoDB Thread Concurrency: 0
  78. [OK] InnoDB File per table is activated
  79. [!!] InnoDB buffer pool / data size: 128.0M/1.9G
  80. [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (75 %): 48.0M * 2/128.0M should be equal to 25%
  81. [OK] InnoDB buffer pool instances: 1
  82. [--] Number of InnoDB Buffer Pool Chunk : 1 for 1 Buffer Pool Instance(s)
  83. [OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
  84. [OK] InnoDB Read buffer efficiency: 99.49% (4478615004041 hits/ 4501776876557 total)
  85. [!!] InnoDB Write Log efficiency: 42.41% (6738376 hits/ 15887676 total)
  86. [OK] InnoDB log waits: 0.00% (0 waits / 22626052 writes)
  87.  
  88. -------- Aria Metrics ------------------------------------------------------------------------------
  89. [--] Aria Storage Engine not available.
  90.  
  91. -------- TokuDB Metrics ----------------------------------------------------------------------------
  92. [--] TokuDB is disabled.
  93.  
  94. -------- XtraDB Metrics ----------------------------------------------------------------------------
  95. [--] XtraDB is disabled.
  96.  
  97. -------- Galera Metrics ----------------------------------------------------------------------------
  98. [--] Galera is disabled.
  99.  
  100. -------- Replication Metrics -----------------------------------------------------------------------
  101. [--] Galera Synchronous replication: NO
  102. [--] No replication slave(s) for this server.
  103. [--] Binlog format: ROW
  104. [--] XA support enabled: ON
  105. [--] Semi synchronous replication Master: Not Activated
  106. [--] Semi synchronous replication Slave: Not Activated
  107. [--] This is a standalone server
  108.  
  109. -------- Recommendations ---------------------------------------------------------------------------
  110. General recommendations:
  111. Check warning line(s) in /var/log/mysql/error.log file
  112. Check error line(s) in /var/log/mysql/error.log file
  113. 6 CVE(s) found for your MySQL release. Consider upgrading your version !
  114. Reduce your overall MySQL memory footprint for system stability
  115. Dedicate this server to your database for highest performance.
  116. Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
  117. We will suggest raising the 'join_buffer_size' until JOINs not using indexes are found.
  118. See https://dev.mysql.com/doc/internals/en/join-buffer-size.html
  119. (specially the conclusions at the bottom of the page).
  120. When making adjustments, make tmp_table_size/max_heap_table_size equal
  121. Reduce your SELECT DISTINCT queries which have no LIMIT clause
  122. Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: https://bit.ly/2TcGgtU
  123. Variables to adjust:
  124. *** MySQL's maximum memory usage is dangerously high ***
  125. *** Add RAM before increasing MySQL buffer variables ***
  126. join_buffer_size (> 256.0K, or always use indexes with JOINs)
  127. tmp_table_size (> 16M)
  128. max_heap_table_size (> 16M)
  129. innodb_buffer_pool_size (>= 1.9G) if possible.
  130. innodb_log_file_size should be (=16M) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
Add Comment
Please, Sign In to add comment