Advertisement
rei4u2005

mysqltuner 10 july 2019

Jul 9th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.74 KB | None | 0 0
  1. >> MySQLTuner 1.7.2 - 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. [OK] Logged in using credentials from debian maintenance account.
  7. [OK] Currently running supported MySQL version 5.7.24-0ubuntu0.18.04.1
  8. [OK] Operating on 64-bit architecture
  9.  
  10. -------- Log file Recommendations ------------------------------------------------------------------
  11. [--] Log file: /var/log/mysql/error.log(31K)
  12. [OK] Log file /var/log/mysql/error.log exists
  13. [OK] Log file /var/log/mysql/error.log is readable.
  14. [OK] Log file /var/log/mysql/error.log is not empty
  15. [OK] Log file /var/log/mysql/error.log is smaller than 32 Mb
  16. [OK] /var/log/mysql/error.log doesn't contain any warning.
  17. [!!] /var/log/mysql/error.log contains 116 error(s).
  18. [--] 0 start(s) detected in /var/log/mysql/error.log
  19. [--] 0 shutdown(s) detected in /var/log/mysql/error.log
  20.  
  21. -------- Storage Engine Statistics -----------------------------------------------------------------
  22. [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA
  23. [--] Data in InnoDB tables: 5G (Tables: 2603)
  24. [OK] Total fragmented tables: 0
  25.  
  26. -------- Security Recommendations ------------------------------------------------------------------
  27. [OK] There are no anonymous accounts for any database users
  28. [!!] User 'root@localhost' has no password set.
  29. [--] Bug #80860 MySQL 5.7: Avoid testing password when validate_password is activated
  30.  
  31. -------- CVE Security Recommendations --------------------------------------------------------------
  32. [OK] NO SECURITY CVE FOUND FOR YOUR VERSION
  33.  
  34. -------- Performance Metrics -----------------------------------------------------------------------
  35. [--] Up for: 22h 4m 8s (2M q [35.917 qps], 1K conn, TX: 6G, RX: 466M)
  36. [--] Reads / Writes: 85% / 15%
  37. [--] Binary logging is disabled
  38. [--] Physical Memory : 15.3G
  39. [--] Max MySQL memory : 6.1G
  40. [--] Other process memory: 80.6M
  41. [--] Total buffers: 5.2G global + 3.4M per thread (251 max threads)
  42. [--] P_S Max memory usage: 72B
  43. [--] Galera GCache Max memory usage: 0B
  44. [OK] Maximum reached memory usage: 5.7G (37.10% of installed RAM)
  45. [OK] Maximum possible memory usage: 6.1G (39.47% of installed RAM)
  46. [OK] Overall possible memory usage with other process is compatible with memory available
  47. [OK] Slow queries: 0% (0/2M)
  48. [OK] Highest usage of available connections: 56% (141/251)
  49. [OK] Aborted connections: 0.17% (3/1777)
  50. [!!] Query cache may be disabled by default due to mutex contention.
  51. [OK] Query cache efficiency: 83.5% (2M cached / 2M selects)
  52. [OK] Query cache prunes per day: 0
  53. [!!] Sorts requiring temporary tables: 18% (71K temp sorts / 384K sorts)
  54. [!!] Joins performed without indexes: 35447
  55. [OK] Temporary tables created on disk: 9% (64K on disk / 669K total)
  56. [OK] Thread cache hit rate: 84% (277 created / 1K connections)
  57. [!!] Table cache hit rate: 1% (2K open / 174K opened)
  58. [OK] Open file limit used: 0% (18/5K)
  59. [OK] Table locks acquired immediately: 100% (2K immediate / 2K locks)
  60.  
  61. -------- Performance schema ------------------------------------------------------------------------
  62. [--] Memory used by P_S: 72B
  63. [--] Sys schema is installed.
  64.  
  65. -------- ThreadPool Metrics ------------------------------------------------------------------------
  66. [--] ThreadPool stat is disabled.
  67.  
  68. -------- MyISAM Metrics ----------------------------------------------------------------------------
  69. [!!] Key buffer used: 19.2% (2M used / 10M cache)
  70. [OK] Key buffer size / total MyISAM indexes: 10.0M/53.0K
  71. [OK] Read Key buffer hit rate: 99.2% (5K cached / 41 reads)
  72. [OK] Write Key buffer hit rate: 100.0% (4 cached / 4 writes)
  73.  
  74. -------- InnoDB Metrics ----------------------------------------------------------------------------
  75. [--] InnoDB is enabled.
  76. [--] InnoDB Thread Concurrency: 0
  77. [OK] InnoDB File per table is activated
  78. [!!] InnoDB buffer pool / data size: 5.0G/6.0G
  79. [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (40 %): 1.0G * 2/5.0G should be equal 25%
  80. [!!] InnoDB buffer pool instances: 4
  81. [--] Number of InnoDB Buffer Pool Chunk : 40 for 4 Buffer Pool Instance(s)
  82. [OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
  83. [OK] InnoDB Read buffer efficiency: 100.00% (51305369441 hits/ 51305452595 total)
  84. [!!] InnoDB Write Log efficiency: 69.26% (52996 hits/ 76513 total)
  85. [OK] InnoDB log waits: 0.00% (0 waits / 23517 writes)
  86.  
  87. -------- AriaDB Metrics ----------------------------------------------------------------------------
  88. [--] AriaDB is disabled.
  89.  
  90. -------- TokuDB Metrics ----------------------------------------------------------------------------
  91. [--] TokuDB is disabled.
  92.  
  93. -------- XtraDB Metrics ----------------------------------------------------------------------------
  94. [--] XtraDB is disabled.
  95.  
  96. -------- RocksDB Metrics ---------------------------------------------------------------------------
  97. [--] RocksDB is disabled.
  98.  
  99. -------- Spider Metrics ----------------------------------------------------------------------------
  100. [--] Spider is disabled.
  101.  
  102. -------- Connect Metrics ---------------------------------------------------------------------------
  103. [--] Connect is disabled.
  104.  
  105. -------- Galera Metrics ----------------------------------------------------------------------------
  106. [--] Galera is disabled.
  107.  
  108. -------- Replication Metrics -----------------------------------------------------------------------
  109. [--] Galera Synchronous replication: NO
  110. [--] No replication slave(s) for this server.
  111. [--] This is a standalone server.
  112.  
  113. -------- Recommendations ---------------------------------------------------------------------------
  114. General recommendations:
  115. Control error line(s) into /var/log/mysql/error.log file
  116. Set up a Password for user with the following SQL statement ( SET PASSWORD FOR 'user'@'SpecificDNSorIp' = PASSWORD('secure_password'); )
  117. MySQL started within last 24 hours - recommendations may be inaccurate
  118. Adjust your join queries to always utilize indexes
  119. Increase table_open_cache gradually to avoid file descriptor limits
  120. Read this before increasing table_open_cache over 64: http://bit.ly/1mi7c4C
  121. Beware that open_files_limit (5000) variable
  122. should be greater than table_open_cache (2369)
  123. Variables to adjust:
  124. query_cache_size (=0)
  125. query_cache_type (=0)
  126. sort_buffer_size (> 1M)
  127. read_rnd_buffer_size (> 1M)
  128. join_buffer_size (> 1.0M, or always use indexes with joins)
  129. table_open_cache (> 2369)
  130. innodb_buffer_pool_size (>= 5G) if possible.
  131. innodb_log_file_size * innodb_log_files_in_group should be equal to 1/4 of buffer pool size (=2G) if possible.
  132. innodb_buffer_pool_instances(=5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement