Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.54 KB | None | 0 0
  1. 
  2. (B   -- MYSQL PERFORMANCE TUNING PRIMER --
  3. (B       - By: Matthew Montgomery -
  4. (B
  5. MySQL Version 5.6.17-log x86_64
  6. (B
  7. Uptime = 2 days 19 hrs 19 min 26 sec
  8. (BAvg. qps = 16
  9. (BTotal Questions = 4076318
  10. (BThreads Connected = 3
  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 (B472628(B out of (B4076339(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 enabled
  29. (B
  30. WORKER THREADS
  31. (BCurrent thread_cache_size = 50
  32. (BCurrent threads_cached = 20
  33. (BCurrent threads_per_sec = 0
  34. (BHistoric threads_per_sec = 0
  35. (BYour thread_cache_size is fine
  36. (B
  37. MAX CONNECTIONS
  38. (BCurrent max_connections = 500
  39. (BCurrent threads_connected = 3
  40. (BHistoric max_used_connections = 23
  41. (BThe number of used connections is (B4% (Bof the configured maximum.
  42. (BYou are using less than 10% of your configured max_connections.
  43. (BLowering max_connections could help to avoid an over-allocation of memory
  44. (BSee "MEMORY USAGE" section to make sure you are not over-allocating
  45. (B
  46. INNODB STATUS
  47. (BCurrent InnoDB index space = 33 M
  48. (BCurrent InnoDB data space = 58 M
  49. (BCurrent InnoDB buffer pool free = 88 %
  50. (BCurrent innodb_buffer_pool_size = 1.00 G
  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 : 1.07 G
  56. (BConfigured Max Per-thread Buffers : 578 M
  57. (BConfigured Max Global Buffers : 1.04 G
  58. (BConfigured Max Memory Limit : 1.61 G
  59. (BPhysical Memory : 31.29 G
  60. (BMax memory limit seem to be within acceptable norms
  61. (B
  62. KEY BUFFER
  63. (BCurrent MyISAM index space = 90 M
  64. (BCurrent key_buffer_size = 32 M
  65. (BKey cache miss rate is 1 : 1637
  66. (BKey buffer free ratio = 28 %
  67. (BYour key_buffer_size seems to be too high.
  68. (BPerhaps you can use these resources elsewhere
  69. (B
  70. QUERY CACHE
  71. (BQuery cache is supported but not enabled
  72. (BPerhaps you should set the query_cache_size
  73. (B
  74. SORT OPERATIONS
  75. (BCurrent sort_buffer_size = 256 K
  76. (BCurrent (Bread_rnd_buffer_size (B= 256 K
  77. (BSort buffer seems to be fine
  78. (B
  79. JOINS
  80. (BCurrent join_buffer_size = 260.00 K
  81. (BYou have had 11509 queries where a join could not use an index properly
  82. (BYou should enable "log-queries-not-using-indexes"
  83. (BThen look for non indexed joins in the slow query log.
  84. (BIf you are unable to optimize your queries you may want to increase your
  85. (Bjoin_buffer_size to accommodate larger joins in one pass.
  86. (B
  87. Note! This script will still suggest raising the join_buffer_size when
  88. (BANY joins not using indexes are found.
  89. (B
  90. OPEN FILES LIMIT
  91. (BCurrent open_files_limit = 20990 files
  92. (BThe open_files_limit should typically be set to at least 2x-3x
  93. (Bthat of table_cache if you have heavy MyISAM usage.
  94. (BYour open_files_limit value seems to be fine
  95. (B
  96. TABLE CACHE
  97. (BCurrent table_open_cache = 10240 tables
  98. (BCurrent table_definition_cache = 4096 tables
  99. (BYou have a total of 2763 tables
  100. (BYou have (B5175 (Bopen tables.
  101. (BThe table_cache value seems to be fine
  102. (B
  103. TEMP TABLES
  104. (BCurrent max_heap_table_size = 32 M
  105. (BCurrent tmp_table_size = 32 M
  106. (BOf 386270 temp tables, 39% were created on disk
  107. (BPerhaps you should increase your tmp_table_size and/or max_heap_table_size
  108. (Bto reduce the number of disk-based temporary tables
  109. (BNote! BLOB and TEXT columns are not allow in memory tables.
  110. (BIf you are using these columns raising these values might not impact your
  111. (Bratio of on disk temp tables.
  112. (B
  113. TABLE SCANS
  114. (BCurrent read_buffer_size = 128 K
  115. (BCurrent table scan ratio = 84 : 1
  116. (Bread_buffer_size seems to be fine
  117. (B
  118. TABLE LOCKING
  119. (BCurrent Lock Wait ratio = (B1 : 13240
  120. (BYour table locking seems to be fine
  121. (B
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement