RedFoxy

Untitled

May 16th, 2014
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.52 KB | None | 0 0
  1. -- MYSQL PERFORMANCE TUNING PRIMER --
  2. - By: Matthew Montgomery -
  3.  
  4. MySQL Version 5.6.17 amd64
  5.  
  6. Uptime = 0 days 0 hrs 7 min 30 sec
  7. Avg. qps = 115
  8. Total Questions = 51881
  9. Threads Connected = 4
  10.  
  11. Warning: Server has not been running for at least 48hrs.
  12. It may not be safe to use these recommendations
  13.  
  14. To find out more information on how each of these
  15. runtime variables effects performance visit:
  16. http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html
  17. Visit http://www.mysql.com/products/enterprise/advisors.html
  18. for info about MySQL's Enterprise Monitoring and Advisory Service
  19.  
  20. SLOW QUERIES
  21. The slow query log is NOT enabled.
  22. Current long_query_time = 10.000000 sec.
  23. You have 0 out of 51930 that take longer than 10.000000 sec. to complete
  24. [: 0.00000000000000000000: bad number
  25. Your long_query_time seems to be fine
  26.  
  27. BINARY UPDATE LOG
  28. The binary update log is NOT enabled.
  29. You will not be able to do point in time recovery
  30. See http://dev.mysql.com/doc/refman/5.6/en/point-in-time-recovery.html
  31.  
  32. WORKER THREADS
  33. Current thread_cache_size = 9
  34. Current threads_cached = 5
  35. Current threads_per_sec = 0
  36. Historic threads_per_sec = 0
  37. Your thread_cache_size is fine
  38.  
  39. MAX CONNECTIONS
  40. Current max_connections = 151
  41. Current threads_connected = 4
  42. Historic max_used_connections = 9
  43. The number of used connections is 5% of the configured maximum.
  44. You are using less than 10% of your configured max_connections.
  45. Lowering max_connections could help to avoid an over-allocation of memory
  46. See "MEMORY USAGE" section to make sure you are not over-allocating
  47.  
  48. INNODB STATUS
  49. Current InnoDB index space = 26 M
  50. Current InnoDB data space = 48 M
  51. Current InnoDB buffer pool free = 85 %
  52. Current innodb_buffer_pool_size = 128 M
  53. Depending on how much space your innodb indexes take up it may be safe
  54. to increase this value to up to 2 / 3 of total system memory
  55.  
  56. MEMORY USAGE
  57. Max Memory Ever Allocated : 163 M
  58. Configured Max Per-thread Buffers : 169 M
  59. Configured Max Global Buffers : 153 M
  60. Configured Max Memory Limit : 322 M
  61. Physical Memory : 16.75 G
  62. Max memory limit seem to be within acceptable norms
  63.  
  64. KEY BUFFER
  65. Current MyISAM index space = 1.37 G
  66. Current key_buffer_size = 8 M
  67. Key cache miss rate is 1 : 43
  68. Key buffer free ratio = 0 %
  69. You could increase key_buffer_size
  70. It is safe to raise this up to 1/4 of total system memory;
  71. assuming this is a dedicated database server.
  72.  
  73. QUERY CACHE
  74. Query cache is enabled
  75. Current query_cache_size = 1 M
  76. Current query_cache_used = 16 K
  77. Current query_cache_limit = 1 M
  78. Current Query cache Memory fill ratio = 1.63 %
  79. Current query_cache_min_res_unit = 4 K
  80. Your query_cache_size seems to be too high.
  81. Perhaps you can use these resources elsewhere
  82. MySQL won't cache query results that are larger than query_cache_limit in size
  83.  
  84. SORT OPERATIONS
  85. Current sort_buffer_size = 256 K
  86. Current read_rnd_buffer_size = 256 K
  87. Sort buffer seems to be fine
  88.  
  89. JOINS
  90. Current join_buffer_size = 260.00 K
  91. You have had 189 queries where a join could not use an index properly
  92. You have had 9 joins without keys that check for key usage after each row
  93. You should enable "log-queries-not-using-indexes"
  94. Then look for non indexed joins in the slow query log.
  95. If you are unable to optimize your queries you may want to increase your
  96. join_buffer_size to accommodate larger joins in one pass.
  97.  
  98. Note! This script will still suggest raising the join_buffer_size when
  99. ANY joins not using indexes are found.
  100.  
  101. OPEN FILES LIMIT
  102. Current open_files_limit = 11095 files
  103. The open_files_limit should typically be set to at least 2x-3x
  104. that of table_cache if you have heavy MyISAM usage.
  105. Your open_files_limit value seems to be fine
  106.  
  107. TABLE CACHE
  108. Current table_open_cache = 2000 tables
  109. Current table_definition_cache = 1400 tables
  110. You have a total of 1581 tables
  111. You have 1647 open tables.
  112. The table_cache value seems to be fine
  113. You should probably increase your table_definition_cache value.
  114.  
  115. TEMP TABLES
  116. Current max_heap_table_size = 16 M
  117. Current tmp_table_size = 16 M
  118. Of 2069 temp tables, 23% were created on disk
  119. Created disk tmp tables ratio seems fine
  120.  
  121. TABLE SCANS
  122. Current read_buffer_size = 128 K
  123. Current table scan ratio = 1813 : 1
  124. read_buffer_size seems to be fine
  125.  
  126. TABLE LOCKING
  127. Current Lock Wait ratio = 1 : 2060
  128. You may benefit from selective use of InnoDB.
  129. If you have long running SELECT's against MyISAM tables and perform
  130. frequent updates consider setting 'low_priority_updates=1'
  131. If you have a high concurrency of inserts on Dynamic row-length tables
  132. consider setting 'concurrent_insert=ALWAYS'.
Advertisement
Add Comment
Please, Sign In to add comment