Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.18 KB | None | 0 0
  1. 
  2. (B   -- MYSQL PERFORMANCE TUNING PRIMER --
  3. (B       - By: Matthew Montgomery -
  4. (B
  5. MySQL Version 5.6.19-1~dotdeb.1 x86_64
  6. (B
  7. Uptime = 58 days 21 hrs 6 min 51 sec
  8. (BAvg. qps = 0
  9. (BTotal Questions = 3335435
  10. (BThreads Connected = 9
  11. (B
  12. Server has been running for over 48hrs.
  13. (BIt should be safe to follow these recommendations
  14. (B
  15. To find out more information on how each of these
  16. (Bruntime variables effects performance visit:
  17. (Bhttp://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html
  18. (BVisit http://www.mysql.com/products/enterprise/advisors.html
  19. (Bfor info about MySQL's Enterprise Monitoring and Advisory Service
  20. (B
  21. SLOW QUERIES
  22. (BThe slow query log is (BNOT(B enabled.
  23. (BCurrent long_query_time = 10.000000 sec.
  24. (BYou have (B943(B out of (B3335456(B that take longer than 10.000000 sec. to complete
  25. (BYour long_query_time seems to be fine
  26. (B
  27. BINARY UPDATE LOG
  28. (BThe binary update log is (BNOT (Benabled.
  29. (BYou will not be able to do point in time recovery
  30. (BSee http://dev.mysql.com/doc/refman/5.6/en/point-in-time-recovery.html
  31. (B
  32. WORKER THREADS
  33. (BCurrent thread_cache_size = 8
  34. (BCurrent threads_cached = 5
  35. (BCurrent threads_per_sec = 0
  36. (BHistoric threads_per_sec = 0
  37. (BYour thread_cache_size is fine
  38. (B
  39. MAX CONNECTIONS
  40. (BCurrent max_connections = 151
  41. (BCurrent threads_connected = 9
  42. (BHistoric max_used_connections = 33
  43. (BThe number of used connections is (B21% (Bof the configured maximum.
  44. (BYour max_connections variable seems to be fine.
  45. (B
  46. INNODB STATUS
  47. (BCurrent InnoDB index space = 8.41 G
  48. (BCurrent InnoDB data space = 8.29 G
  49. (BCurrent InnoDB buffer pool free = 10 %
  50. (BCurrent innodb_buffer_pool_size = 128 M
  51. (BDepending on how much space your innodb indexes take up it may be safe
  52. (Bto increase this value to up to 2 / 3 of total system memory
  53. (B
  54. MEMORY USAGE
  55. (BMax Memory Ever Allocated : 203 M
  56. (BConfigured Max Per-thread Buffers : 160 M
  57. (BConfigured Max Global Buffers : 168 M
  58. (BConfigured Max Memory Limit : 328 M
  59. (BPhysical Memory : 3.87 G
  60. (BMax memory limit seem to be within acceptable norms
  61. (B
  62. KEY BUFFER
  63. (BCurrent MyISAM index space = 1.45 G
  64. (BCurrent key_buffer_size = 8 M
  65. (BKey cache miss rate is 1 : 239
  66. (BKey buffer free ratio = 81 %
  67. (BYour key_buffer_size seems to be fine
  68. (B
  69. QUERY CACHE
  70. (BQuery cache is enabled
  71. (BCurrent query_cache_size = 16 M
  72. (BCurrent query_cache_used = 17 K
  73. (BCurrent query_cache_limit = 1 M
  74. (BCurrent Query cache Memory fill ratio = .10 %
  75. (BCurrent query_cache_min_res_unit = 4 K
  76. (BYour query_cache_size seems to be too high.
  77. (BPerhaps you can use these resources elsewhere
  78. (BMySQL won't cache query results that are larger than query_cache_limit in size
  79. (B
  80. SORT OPERATIONS
  81. (BCurrent sort_buffer_size = 256 K
  82. (BCurrent (Bread_rnd_buffer_size (B= 256 K
  83. (BSort buffer seems to be fine
  84. (B
  85. JOINS
  86. (BCurrent join_buffer_size = 260.00 K
  87. (BYou have had 3091 queries where a join could not use an index properly
  88. (BYou have had 5 joins without keys that check for key usage after each row
  89. (BYou should enable "log-queries-not-using-indexes"
  90. (BThen look for non indexed joins in the slow query log.
  91. (BIf you are unable to optimize your queries you may want to increase your
  92. (Bjoin_buffer_size to accommodate larger joins in one pass.
  93. (B
  94. Note! This script will still suggest raising the join_buffer_size when
  95. (BANY joins not using indexes are found.
  96. (B
  97. OPEN FILES LIMIT
  98. (BCurrent open_files_limit = 1024 files
  99. (BThe open_files_limit should typically be set to at least 2x-3x
  100. (Bthat of table_cache if you have heavy MyISAM usage.
  101. (BYour open_files_limit value seems to be fine
  102. (B
  103. TABLE CACHE
  104. (BCurrent table_open_cache = 431 tables
  105. (BCurrent table_definition_cache = 615 tables
  106. (BYou have a total of 849 tables
  107. (BYou have (B431 (Bopen tables.
  108. (BCurrent table_cache hit rate is (B0%
  109. (B, while (B100% (Bof your table cache is in use
  110. (BYou should probably increase your table_cache
  111. (BYou should probably increase your table_definition_cache value.
  112. (B
  113. TEMP TABLES
  114. (BCurrent max_heap_table_size = 16 M
  115. (BCurrent tmp_table_size = 16 M
  116. (BOf 53084 temp tables, 30% were created on disk
  117. (BPerhaps you should increase your tmp_table_size and/or max_heap_table_size
  118. (Bto reduce the number of disk-based temporary tables
  119. (BNote! BLOB and TEXT columns are not allow in memory tables.
  120. (BIf you are using these columns raising these values might not impact your
  121. (Bratio of on disk temp tables.
  122. (B
  123. TABLE SCANS
  124. (BCurrent read_buffer_size = 128 K
  125. (BCurrent table scan ratio = 2928 : 1
  126. (Bread_buffer_size seems to be fine
  127. (B
  128. TABLE LOCKING
  129. (BCurrent Lock Wait ratio = (B0 : 3335711
  130. (BYour table locking seems to be fine
  131. (B
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement