Advertisement
Guest User

Untitled

a guest
Sep 1st, 2014
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- MYSQL PERFORMANCE TUNING PRIMER --
  2. - By: Matthew Montgomery -
  3.  
  4. MySQL Version 5.5.37-cll x86_64
  5.  
  6. Uptime = 18 days 4 hrs 1 min 50 sec
  7. Avg. qps = 124
  8. Total Questions = 196063773
  9. Threads Connected = 6
  10.  
  11. Server has been running for over 48hrs.
  12. It should be safe to follow 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.5/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 enabled.
  22. Current long_query_time = 10.000000 sec.
  23. You have 17835 out of 196063868 that take longer than 10.000000 sec. to complete
  24. Your long_query_time seems to be fine
  25.  
  26. BINARY UPDATE LOG
  27. The binary update log is NOT enabled.
  28. You will not be able to do point in time recovery
  29. See http://dev.mysql.com/doc/refman/5.5/en/point-in-time-recovery.html
  30.  
  31. WORKER THREADS
  32. Current thread_cache_size = 12
  33. Current threads_cached = 8
  34. Current threads_per_sec = 0
  35. Historic threads_per_sec = 0
  36. Your thread_cache_size is fine
  37.  
  38. MAX CONNECTIONS
  39. Current max_connections = 200
  40. Current threads_connected = 13
  41. Historic max_used_connections = 115
  42. The number of used connections is 57% of the configured maximum.
  43. Your max_connections variable seems to be fine.
  44.  
  45. INNODB STATUS
  46. Current InnoDB index space = 388 M
  47. Current InnoDB data space = 291 M
  48. Current InnoDB buffer pool free = 0 %
  49. Current innodb_buffer_pool_size = 400 M
  50. Depending on how much space your innodb indexes take up it may be safe
  51. to increase this value to up to 2 / 3 of total system memory
  52.  
  53. MEMORY USAGE
  54. Max Memory Ever Allocated : 3.00 G
  55. Configured Max Per-thread Buffers : 3.63 G
  56. Configured Max Global Buffers : 936 M
  57. Configured Max Memory Limit : 4.55 G
  58. Physical Memory : 17.08 G
  59. Max memory limit seem to be within acceptable norms
  60.  
  61. KEY BUFFER
  62. Current MyISAM index space = 1.48 G
  63. Current key_buffer_size = 8 M
  64. Key cache miss rate is 1 : 20
  65. Key buffer free ratio = 74 %
  66. Your key_buffer_size seems to be fine
  67.  
  68. QUERY CACHE
  69. Query cache is enabled
  70. Current query_cache_size = 512 M
  71. Current query_cache_used = 291 M
  72. Current query_cache_limit = 512 M
  73. Current Query cache Memory fill ratio = 56.93 %
  74. Current query_cache_min_res_unit = 4 K
  75. MySQL won't cache query results that are larger than query_cache_limit in size
  76.  
  77. SORT OPERATIONS
  78. Current sort_buffer_size = 2 M
  79. Current read_rnd_buffer_size = 256 K
  80. Sort buffer seems to be fine
  81.  
  82. JOINS
  83. Current join_buffer_size = 16.00 M
  84. You have had 208973 queries where a join could not use an index properly
  85. You have had 449458 joins without keys that check for key usage after each row
  86. join_buffer_size >= 4 M
  87. This is not advised
  88. You should enable "log-queries-not-using-indexes"
  89. Then look for non indexed joins in the slow query log.
  90.  
  91. OPEN FILES LIMIT
  92. Current open_files_limit = 43762 files
  93. The open_files_limit should typically be set to at least 2x-3x
  94. that of table_cache if you have heavy MyISAM usage.
  95. Your open_files_limit value seems to be fine
  96.  
  97. TABLE CACHE
  98. Current table_open_cache = 512 tables
  99. Current table_definition_cache = 400 tables
  100. You have a total of 8031 tables
  101. You have 512 open tables.
  102. Current table_cache hit rate is 0%
  103. , while 100% of your table cache is in use
  104. You should probably increase your table_cache
  105. You should probably increase your table_definition_cache value.
  106.  
  107. TEMP TABLES
  108. Current max_heap_table_size = 1.00 G
  109. Current tmp_table_size = 1.00 G
  110. Of 6639839 temp tables, 35% were created on disk
  111. Perhaps you should increase your tmp_table_size and/or max_heap_table_size
  112. to reduce the number of disk-based temporary tables
  113. Note! BLOB and TEXT columns are not allow in memory tables.
  114. If you are using these columns raising these values might not impact your
  115. ratio of on disk temp tables.
  116.  
  117. TABLE SCANS
  118. Current read_buffer_size = 128 K
  119. Current table scan ratio = 3261 : 1
  120. read_buffer_size seems to be fine
  121.  
  122. TABLE LOCKING
  123. Current Lock Wait ratio = 1 : 1619
  124. You may benefit from selective use of InnoDB.
  125. If you have long running SELECT's against MyISAM tables and perform
  126. frequent updates consider setting 'low_priority_updates=1'
  127. If you have a high concurrency of inserts on Dynamic row-length tables
  128. consider setting 'concurrent_insert=ALWAYS'.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement