Advertisement
TELA9

mysqltuner

Mar 29th, 2019
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.42 KB | None | 0 0
  1. root@localhost:~# ./mysqltuner.pl
  2. >> MySQLTuner 1.7.15 - Major Hayden <[email protected]>
  3. >> Bug reports, feature requests, and downloads at http://mysqltuner.com/
  4. >> Run with '--help' for additional options and output filtering
  5.  
  6. [--] Skipped version check for MySQLTuner script
  7. [OK] Logged in using credentials from Debian maintenance account.
  8. [OK] Currently running supported MySQL version 5.7.25-0ubuntu0.18.04.2-log
  9. [OK] Operating on 64-bit architecture
  10.  
  11. -------- Log file Recommendations ------------------------------------------------------------------
  12. [--] Log file: /var/log/mysql/error.log(476B)
  13. [OK] Log file /var/log/mysql/error.log exists
  14. [OK] Log file /var/log/mysql/error.log is readable.
  15. [OK] Log file /var/log/mysql/error.log is not empty
  16. [OK] Log file /var/log/mysql/error.log is smaller than 32 Mb
  17. [OK] /var/log/mysql/error.log doesn't contain any warning.
  18. [OK] /var/log/mysql/error.log doesn't contain any error.
  19. [--] 0 start(s) detected in /var/log/mysql/error.log
  20. [--] 0 shutdown(s) detected in /var/log/mysql/error.log
  21.  
  22. -------- Storage Engine Statistics -----------------------------------------------------------------
  23. [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA
  24. [--] Data in InnoDB tables: 2.0G (Tables: 69)
  25. [OK] Total fragmented tables: 0
  26.  
  27. -------- Analysis Performance Metrics --------------------------------------------------------------
  28. [--] innodb_stats_on_metadata: OFF
  29. [OK] No stat updates during querying INFORMATION_SCHEMA.
  30.  
  31. -------- Security Recommendations ------------------------------------------------------------------
  32. [OK] There are no anonymous accounts for any database users
  33. [!!] failed to execute: SELECT CONCAT(user, '@', host) FROM mysql.user WHERE (IF(plugin='mysql_native_password', authentication_string, password) = '' OR IF(plugin='mysql_native_password', authentication_string, password) IS NULL) AND plugin NOT IN ('unix_socket', 'win_socket', 'auth_pam_compat')
  34. [!!] FAIL Execute SQL / return code: 256
  35. [OK] All database users have passwords assigned
  36. [--] Bug #80860 MySQL 5.7: Avoid testing password when validate_password is activated
  37.  
  38. -------- CVE Security Recommendations --------------------------------------------------------------
  39. [--] Skipped due to --cvefile option undefined
  40.  
  41. -------- Performance Metrics -----------------------------------------------------------------------
  42. [--] Up for: 1d 5h 58m 40s (457K q [4.243 qps], 28K conn, TX: 2G, RX: 53M)
  43. [--] Reads / Writes: 98% / 2%
  44. [--] Binary logging is disabled
  45. [--] Physical Memory : 15.7G
  46. [--] Max MySQL memory : 8.6G
  47. [--] Other process memory: 0B
  48. [--] Total buffers: 8.3G global + 1.0M per thread (256 max threads)
  49. [--] P_S Max memory usage: 72B
  50. [--] Galera GCache Max memory usage: 0B
  51. [OK] Maximum reached memory usage: 8.3G (53.17% of installed RAM)
  52. [OK] Maximum possible memory usage: 8.6G (54.73% of installed RAM)
  53. [OK] Overall possible memory usage with other process is compatible with memory available
  54. [OK] Slow queries: 0% (42/457K)
  55. [OK] Highest usage of available connections: 2% (6/256)
  56. [OK] Aborted connections: 0.01% (3/28889)
  57. [!!] Query cache may be disabled by default due to mutex contention.
  58. [!!] Query cache efficiency: 0.0% (0 cached / 310K selects)
  59. [OK] Query cache prunes per day: 0
  60. [!!] Sorts requiring temporary tables: 19% (15K temp sorts / 80K sorts)
  61. [OK] No joins without indexes
  62. [!!] Temporary tables created on disk: 54% (30K on disk / 56K total)
  63. [OK] Thread cache hit rate: 99% (6 created / 28K connections)
  64. [OK] Table cache hit rate: 70% (1K open / 1K opened)
  65. [OK] Open file limit used: 1% (68/5K)
  66. [OK] Table locks acquired immediately: 100% (511 immediate / 511 locks)
  67.  
  68. -------- Performance schema ------------------------------------------------------------------------
  69. [--] Memory used by P_S: 72B
  70. [--] Sys schema is installed.
  71.  
  72. -------- ThreadPool Metrics ------------------------------------------------------------------------
  73. [--] ThreadPool stat is disabled.
  74.  
  75. -------- MyISAM Metrics ----------------------------------------------------------------------------
  76. [!!] Key buffer used: 18.4% (1M used / 8M cache)
  77. [OK] Key buffer size / total MyISAM indexes: 8.0M/43.0K
  78. [OK] Read Key buffer hit rate: 97.3% (366 cached / 10 reads)
  79. [OK] Write Key buffer hit rate: 100.0% (5 cached / 5 writes)
  80.  
  81. -------- InnoDB Metrics ----------------------------------------------------------------------------
  82. [--] InnoDB is enabled.
  83. [--] InnoDB Thread Concurrency: 0
  84. [OK] InnoDB File per table is activated
  85. [OK] InnoDB buffer pool / data size: 8.0G/2.0G
  86. [OK] Ratio InnoDB log file size / InnoDB Buffer pool size: 1.0G * 2/8.0G should be equal to 25%
  87. [!!] InnoDB buffer pool instances: 4
  88. [--] Number of InnoDB Buffer Pool Chunk : 64 for 4 Buffer Pool Instance(s)
  89. [OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
  90. [OK] InnoDB Read buffer efficiency: 99.99% (521895373 hits/ 521966251 total)
  91. [!!] InnoDB Write Log efficiency: 86.39% (39770 hits/ 46036 total)
  92. [OK] InnoDB log waits: 0.00% (0 waits / 6266 writes)
  93.  
  94. -------- AriaDB Metrics ----------------------------------------------------------------------------
  95. [--] AriaDB is disabled.
  96.  
  97. -------- TokuDB Metrics ----------------------------------------------------------------------------
  98. [--] TokuDB is disabled.
  99.  
  100. -------- XtraDB Metrics ----------------------------------------------------------------------------
  101. [--] XtraDB is disabled.
  102.  
  103. -------- Galera Metrics ----------------------------------------------------------------------------
  104. [--] Galera is disabled.
  105.  
  106. -------- Replication Metrics -----------------------------------------------------------------------
  107. [--] Galera Synchronous replication: NO
  108. [--] No replication slave(s) for this server.
  109. [--] Binlog format: ROW
  110. [--] XA support enabled: ON
  111. [--] Semi synchronous replication Master: Not Activated
  112. [--] Semi synchronous replication Slave: Not Activated
  113. [--] This is a standalone server
  114.  
  115. -------- Recommendations ---------------------------------------------------------------------------
  116. General recommendations:
  117. Temporary table size is already large - reduce result set size
  118. Reduce your SELECT DISTINCT queries without LIMIT clauses
  119. Variables to adjust:
  120. query_cache_size (=0)
  121. query_cache_type (=0)
  122. query_cache_limit (> 1M, or use smaller result sets)
  123. sort_buffer_size (> 256K)
  124. read_rnd_buffer_size (> 256K)
  125. innodb_buffer_pool_instances(=8)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement