Advertisement
Guest User

Untitled

a guest
Nov 20th, 2014
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.09 KB | None | 0 0
  1. -- MYSQL PERFORMANCE TUNING PRIMER --
  2. - By: Matthew Montgomery -
  3.  
  4. MySQL Version 5.6.21-log x86_64
  5.  
  6. Uptime = 14 days 16 hrs 59 min 57 sec
  7. Avg. qps = 157
  8. Total Questions = 199812708
  9. Threads Connected = 2
  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.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 = 1.000000 sec.
  23. You have 21904124 out of 199812729 that take longer than 1.000000 sec. to comple te
  24. Your long_query_time seems to be fine
  25.  
  26. BINARY UPDATE LOG
  27. The binary update log is enabled
  28.  
  29. WORKER THREADS
  30. Current thread_cache_size = 50
  31. Current threads_cached = 38
  32. Current threads_per_sec = 0
  33. Historic threads_per_sec = 0
  34. Your thread_cache_size is fine
  35.  
  36. MAX CONNECTIONS
  37. Current max_connections = 500
  38. Current threads_connected = 2
  39. Historic max_used_connections = 40
  40. The number of used connections is 8% of the configured maximum.
  41. You are using less than 10% of your configured max_connections.
  42. Lowering max_connections could help to avoid an over-allocation of memory
  43. See "MEMORY USAGE" section to make sure you are not over-allocating
  44.  
  45. INNODB STATUS
  46. Current InnoDB index space = 37 M
  47. Current InnoDB data space = 82 M
  48. Current InnoDB buffer pool free = 71 %
  49. Current innodb_buffer_pool_size = 1.00 G
  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 : 1.09 G
  55. Configured Max Per-thread Buffers : 578 M
  56. Configured Max Global Buffers : 1.04 G
  57. Configured Max Memory Limit : 1.61 G
  58. Physical Memory : 31.29 G
  59. Max memory limit seem to be within acceptable norms
  60.  
  61. KEY BUFFER
  62. Current MyISAM index space = 139 M
  63. Current key_buffer_size = 32 M
  64. Key cache miss rate is 1 : 9157
  65. Key buffer free ratio = 0 %
  66. You could increase key_buffer_size
  67. It is safe to raise this up to 1/4 of total system memory;
  68. assuming this is a dedicated database server.
  69.  
  70. QUERY CACHE
  71. Query cache is supported but not enabled
  72. Perhaps you should set the query_cache_size
  73.  
  74. SORT OPERATIONS
  75. Current sort_buffer_size = 256 K
  76. Current read_rnd_buffer_size = 256 K
  77. Sort buffer seems to be fine
  78.  
  79. JOINS
  80. Current join_buffer_size = 260.00 K
  81. You have had 317455 queries where a join could not use an index properly
  82. You should enable "log-queries-not-using-indexes"
  83. Then look for non indexed joins in the slow query log.
  84. If you are unable to optimize your queries you may want to increase your
  85. join_buffer_size to accommodate larger joins in one pass.
  86.  
  87. Note! This script will still suggest raising the join_buffer_size when
  88. ANY joins not using indexes are found.
  89.  
  90. OPEN FILES LIMIT
  91. Current open_files_limit = 20990 files
  92. The open_files_limit should typically be set to at least 2x-3x
  93. that of table_cache if you have heavy MyISAM usage.
  94. Your open_files_limit value seems to be fine
  95.  
  96. TABLE CACHE
  97. Current table_open_cache = 10240 tables
  98. Current table_definition_cache = 4096 tables
  99. You have a total of 2738 tables
  100. You have 5344 open tables.
  101. The table_cache value seems to be fine
  102.  
  103. TEMP TABLES
  104. Current max_heap_table_size = 32 M
  105. Current tmp_table_size = 32 M
  106. Of 14972355 temp tables, 39% were created on disk
  107. Perhaps you should increase your tmp_table_size and/or max_heap_table_size
  108. to reduce the number of disk-based temporary tables
  109. Note! BLOB and TEXT columns are not allow in memory tables.
  110. If you are using these columns raising these values might not impact your
  111. ratio of on disk temp tables.
  112.  
  113. TABLE SCANS
  114. Current read_buffer_size = 128 K
  115. Current table scan ratio = 30 : 1
  116. read_buffer_size seems to be fine
  117.  
  118. TABLE LOCKING
  119. Current Lock Wait ratio = 1 : 55279
  120. Your table locking seems to be fine
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement