Advertisement
belgiumwebnet

mysql_tuner_report

Dec 30th, 2019
495
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 6.83 KB | None | 0 0
  1. >>  MySQLTuner 1.7.19 - Major Hayden <[email protected]>
  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. Please enter your MySQL administrative login: root
  7. Please enter your MySQL administrative password: [OK] Currently running supported MySQL version 5.7.28-0ubuntu0.16.04.2
  8. [OK] Operating on 64-bit architecture
  9.  
  10. -------- Log file Recommendations ------------------------------------------------------------------
  11. [OK] Log file /var/log/mysql/error.log exists
  12. [--] Log file: /var/log/mysql/error.log(0B)
  13. [OK] Log file /var/log/mysql/error.log is readable.
  14. [!!] Log file /var/log/mysql/error.log is 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. [OK] /var/log/mysql/error.log doesn't contain any error.
  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 MyISAM tables: 6.3M (Tables: 76)
  24. [--] Data in InnoDB tables: 82.3M (Tables: 293)
  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. [OK] All database users have passwords assigned
  34. [--] Bug #80860 MySQL 5.7: Avoid testing password when validate_password is activated
  35.  
  36. -------- CVE Security Recommendations --------------------------------------------------------------
  37. [--] Skipped due to --cvefile option undefined
  38.  
  39. -------- Performance Metrics -----------------------------------------------------------------------
  40. [--] Up for: 3h 17m 22s (8K q [0.694 qps], 446 conn, TX: 11M, RX: 1M)
  41. [--] Reads / Writes: 97% / 3%
  42. [--] Binary logging is disabled
  43. [--] Physical Memory     : 7.7G
  44. [--] Max MySQL memory    : 352.4M
  45. [--] Other process memory: 0B
  46. [--] Total buffers: 192.0M global + 1.1M per thread (151 max threads)
  47. [--] P_S Max memory usage: 72B
  48. [--] Galera GCache Max memory usage: 0B
  49. [OK] Maximum reached memory usage: 196.3M (2.48% of installed RAM)
  50. [OK] Maximum possible memory usage: 352.4M (4.45% of installed RAM)
  51. [OK] Overall possible memory usage with other process is compatible with memory available
  52. [OK] Slow queries: 0% (0/8K)
  53. [OK] Highest usage of available connections: 2% (4/151)
  54. [OK] Aborted connections: 0.90%  (4/446)
  55. [!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
  56. [!!] Query cache may be disabled by default due to mutex contention.
  57. [!!] Query cache efficiency: 0.0% (0 cached / 6K selects)
  58. [OK] Query cache prunes per day: 0
  59. [OK] Sorts requiring temporary tables: 0% (4 temp sorts / 695 sorts)
  60. [!!] Joins performed without indexes: 48
  61. [OK] Temporary tables created on disk: 25% (285 on disk / 1K total)
  62. [OK] Thread cache hit rate: 99% (4 created / 446 connections)
  63. [OK] Table cache hit rate: 62% (319 open / 507 opened)
  64. [!!] table_definition_cache(615) is lower than number of tables(662)
  65. [OK] Open file limit used: 1% (17/1K)
  66. [OK] Table locks acquired immediately: 100% (194 immediate / 194 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.3% (3M used / 16M cache)
  77. [OK] Key buffer size / total MyISAM indexes: 16.0M/674.0K
  78. [!!] Read Key buffer hit rate: 90.5% (74 cached / 7 reads)
  79.  
  80. -------- InnoDB Metrics ----------------------------------------------------------------------------
  81. [--] InnoDB is enabled.
  82. [--] InnoDB Thread Concurrency: 0
  83. [OK] InnoDB File per table is activated
  84. [OK] InnoDB buffer pool / data size: 128.0M/82.3M
  85. [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (75 %): 48.0M * 2/128.0M should be equal to 25%
  86. [OK] InnoDB buffer pool instances: 1
  87. [--] Number of InnoDB Buffer Pool Chunk : 1 for 1 Buffer Pool Instance(s)
  88. [OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
  89. [OK] InnoDB Read buffer efficiency: 100.00% (29931093 hits/ 29932456 total)
  90. [OK] InnoDB Write log efficiency: 91.50% (2282 hits/ 2494 total)
  91. [OK] InnoDB log waits: 0.00% (0 waits / 212 writes)
  92.  
  93. -------- AriaDB Metrics ----------------------------------------------------------------------------
  94. [--] AriaDB is disabled.
  95.  
  96. -------- TokuDB Metrics ----------------------------------------------------------------------------
  97. [--] TokuDB is disabled.
  98.  
  99. -------- XtraDB Metrics ----------------------------------------------------------------------------
  100. [--] XtraDB is disabled.
  101.  
  102. -------- Galera Metrics ----------------------------------------------------------------------------
  103. [--] Galera is disabled.
  104.  
  105. -------- Replication Metrics -----------------------------------------------------------------------
  106. [--] Galera Synchronous replication: NO
  107. [--] No replication slave(s) for this server.
  108. [--] Binlog format: ROW
  109. [--] XA support enabled: ON
  110. [--] Semi synchronous replication Master: Not Activated
  111. [--] Semi synchronous replication Slave: Not Activated
  112. [--] This is a standalone server
  113.  
  114. -------- Recommendations ---------------------------------------------------------------------------
  115. General recommendations:
  116.     MySQL was started within the last 24 hours - recommendations may be inaccurate
  117.     Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
  118.     We will suggest raising the 'join_buffer_size' until JOINs not using indexes are found.
  119.              See https://dev.mysql.com/doc/internals/en/join-buffer-size.html
  120.              (specially the conclusions at the bottom of the page).
  121.     Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: https://bit.ly/2TcGgtU
  122. Variables to adjust:
  123.     query_cache_size (=0)
  124.     query_cache_type (=0)
  125.     query_cache_limit (> 1M, or use smaller result sets)
  126.     join_buffer_size (> 256.0K, or always use indexes with JOINs)
  127.     table_definition_cache(615) > 662 or -1 (autosizing if supported)
  128.     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