Guest User

mysqltuner advices

a guest
Oct 31st, 2017
775
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.07 KB | None | 0 0
  1. >> MySQLTuner 1.7.4 - 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: ...
  7. Please enter your MySQL administrative password: [OK] Currently running supported MySQL version 10.2.9-MariaDB-10.2.9+maria~xenial-log
  8. [OK] Operating on 64-bit architecture
  9.  
  10. -------- Log file Recommendations ------------------------------------------------------------------
  11. [--] Log file: /var/lib/mysql/danforth.err(0B)
  12. [!!] Log file /var/lib/mysql/danforth.err doesn't exist
  13. [!!] Log file /var/lib/mysql/danforth.err isn't readable.
  14.  
  15. -------- Storage Engine Statistics -----------------------------------------------------------------
  16. [--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE
  17. [--] Data in InnoDB tables: 69M (Tables: 135)
  18. [--] Data in MyISAM tables: 6M (Tables: 80)
  19. [OK] Total fragmented tables: 0
  20.  
  21. -------- Security Recommendations ------------------------------------------------------------------
  22. [OK] There are no anonymous accounts for any database users
  23. [OK] All database users have passwords assigned
  24. [!!] There is no basic password file list!
  25.  
  26. -------- CVE Security Recommendations --------------------------------------------------------------
  27. [--] Skipped due to --cvefile option undefined
  28.  
  29. -------- Performance Metrics -----------------------------------------------------------------------
  30. [--] Up for: 1m 46s (87K q [822.066 qps], 827 conn, TX: 467M, RX: 39M)
  31. [--] Reads / Writes: 97% / 3%
  32. [--] Binary logging is enabled (GTID MODE: OFF)
  33. [--] Physical Memory : 992.2M
  34. [--] Max MySQL memory : 1.3G
  35. [--] Other process memory: 199.9M
  36. [--] Total buffers: 616.0M global + 7.5M per thread (100 max threads)
  37. [--] P_S Max memory usage: 0B
  38. [--] Galera GCache Max memory usage: 0B
  39. [OK] Maximum reached memory usage: 661.2M (66.64% of installed RAM)
  40. [!!] Maximum possible memory usage: 1.3G (138.03% of installed RAM)
  41. [!!] Overall possible memory usage with other process exceeded memory
  42. [OK] Slow queries: 0% (0/87K)
  43. [OK] Highest usage of available connections: 6% (6/100)
  44. [OK] Aborted connections: 0.12% (1/827)
  45. [!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
  46. [!!] Query cache may be disabled by default due to mutex contention.
  47. [OK] Query cache efficiency: 48.8% (79K cached / 162K selects)
  48. [OK] Query cache prunes per day: 0
  49. [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 920 sorts)
  50. [!!] Joins performed without indexes: 10
  51. [!!] Temporary tables created on disk: 26% (50 on disk / 187 total)
  52. [OK] Thread cache hit rate: 99% (6 created / 827 connections)
  53. [OK] Table cache hit rate: 84% (400 open / 474 opened)
  54. [OK] Open file limit used: 0% (22/16K)
  55. [OK] Table locks acquired immediately: 100% (4K immediate / 4K locks)
  56. [OK] Binlog cache memory access: 100.00% (8 Memory / 8 Total)
  57.  
  58. -------- Performance schema ------------------------------------------------------------------------
  59. [--] Performance schema is disabled.
  60. [--] Memory used by P_S: 0B
  61. [--] Sys schema isn't installed.
  62.  
  63. -------- ThreadPool Metrics ------------------------------------------------------------------------
  64. [--] ThreadPool stat is enabled.
  65. [--] Thread Pool Size: 1 thread(s).
  66. [--] Using default value is good enough for your version (10.2.9-MariaDB-10.2.9+maria~xenial-log)
  67.  
  68. -------- MyISAM Metrics ----------------------------------------------------------------------------
  69. [!!] Key buffer used: 18.3% (24M used / 134M cache)
  70. [OK] Key buffer size / total MyISAM indexes: 128.0M/3.0M
  71. [OK] Read Key buffer hit rate: 99.0% (4K cached / 44 reads)
  72.  
  73. -------- InnoDB Metrics ----------------------------------------------------------------------------
  74. [--] InnoDB is enabled.
  75. [--] InnoDB Thread Concurrency: 0
  76. [OK] InnoDB File per table is activated
  77. [OK] InnoDB buffer pool / data size: 256.0M/69.8M
  78. [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (37.5 %): 48.0M * 2/256.0M should be equal 25%
  79. [OK] InnoDB buffer pool instances: 1
  80. [--] Number of InnoDB Buffer Pool Chunk : 2 for 1 Buffer Pool Instance(s)
  81. [OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
  82. [OK] InnoDB Read buffer efficiency: 99.96% (10857044 hits/ 10861270 total)
  83. [!!] InnoDB Write Log efficiency: 133.33% (4 hits/ 3 total)
  84. [OK] InnoDB log waits: 0.00% (0 waits / 7 writes)
  85.  
  86. -------- AriaDB Metrics ----------------------------------------------------------------------------
  87. [--] AriaDB is enabled.
  88. [OK] Aria pagecache size / total Aria indexes: 128.0M/1B
  89. [OK] Aria pagecache hit rate: 100.0% (13K cached / 2 reads)
  90.  
  91. -------- TokuDB Metrics ----------------------------------------------------------------------------
  92. [--] TokuDB is disabled.
  93.  
  94. -------- XtraDB Metrics ----------------------------------------------------------------------------
  95. [--] XtraDB is disabled.
  96.  
  97. -------- RocksDB Metrics ---------------------------------------------------------------------------
  98. [--] RocksDB is disabled.
  99.  
  100. -------- Spider Metrics ----------------------------------------------------------------------------
  101. [--] Spider is disabled.
  102.  
  103. -------- Connect Metrics ---------------------------------------------------------------------------
  104. [--] Connect is disabled.
  105.  
  106. -------- Galera Metrics ----------------------------------------------------------------------------
  107. [--] Galera is disabled.
  108.  
  109. -------- Replication Metrics -----------------------------------------------------------------------
  110. [--] Galera Synchronous replication: NO
  111. [--] No replication slave(s) for this server.
  112. [--] This is a standalone server.
  113.  
  114. -------- Recommendations ---------------------------------------------------------------------------
  115. General recommendations:
  116. MySQL started within last 24 hours - recommendations may be inaccurate
  117. Reduce your overall MySQL memory footprint for system stability
  118. Dedicate this server to your database for highest performance.
  119. Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
  120. Adjust your join queries to always utilize indexes
  121. When making adjustments, make tmp_table_size/max_heap_table_size equal
  122. Reduce your SELECT DISTINCT queries which have no LIMIT clause
  123. Performance should be activated for better diagnostics
  124. Consider installing Sys schema from https://github.com/mysql/mysql-sys
  125. Read this before changing innodb_log_file_size and/or innodb_log_files_in_group: http://bit.ly/2wgkDvS
  126. Variables to adjust:
  127. *** MySQL's maximum memory usage is dangerously high ***
  128. *** Add RAM before increasing MySQL buffer variables ***
  129. query_cache_size (=0)
  130. query_cache_type (=0)
  131. join_buffer_size (> 256.0K, or always use indexes with joins)
  132. tmp_table_size (> 32M)
  133. max_heap_table_size (> 32M)
  134. performance_schema = ON enable PFS
  135. innodb_log_file_size should be (=32M) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
Advertisement
Add Comment
Please, Sign In to add comment