Advertisement
Guest User

tuning-primer

a guest
Dec 17th, 2012
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 KB | None | 0 0
  1. -- MYSQL PERFORMANCE TUNING PRIMER --
  2. - By: Matthew Montgomery -
  3.  
  4. MySQL Version 5.1.63-0+squeeze1-log x86_64
  5.  
  6. Uptime = 0 days 7 hrs 7 min 22 sec
  7. Avg. qps = 132
  8. Total Questions = 3386852
  9. Threads Connected = 165
  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.1/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 = 0.100000 sec.
  23. You have 63331 out of 3386879 that take longer than 0.100000 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.1/en/point-in-time-recovery.html
  30.  
  31. WORKER THREADS
  32. Current thread_cache_size = 612
  33. Current threads_cached = 290
  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 = 1500
  40. Current threads_connected = 164
  41. Historic max_used_connections = 454
  42. The number of used connections is 30% of the configured maximum.
  43. Your max_connections variable seems to be fine.
  44.  
  45. INNODB STATUS
  46. Current InnoDB index space = 6.71 G
  47. Current InnoDB data space = 12.32 G
  48. Current InnoDB buffer pool free = 19 %
  49. Current innodb_buffer_pool_size = 12.79 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 : 15.15 G
  55. Configured Max Per-thread Buffers : 7.69 G
  56. Configured Max Global Buffers : 12.83 G
  57. Configured Max Memory Limit : 20.52 G
  58. Physical Memory : 15.59 G
  59.  
  60. Max memory limit exceeds 90% of physical memory
  61.  
  62. KEY BUFFER
  63. Current MyISAM index space = 18 M
  64. Current key_buffer_size = 20 M
  65. Key cache miss rate is 1 : 667
  66. Key buffer free ratio = 71 %
  67. Your key_buffer_size seems to be fine
  68.  
  69. QUERY CACHE
  70. Query cache is supported but not enabled
  71. Perhaps you should set the query_cache_size
  72.  
  73. SORT OPERATIONS
  74. Current sort_buffer_size = 2 M
  75. Current read_rnd_buffer_size = 1 M
  76. Sort buffer seems to be fine
  77.  
  78. JOINS
  79. Current join_buffer_size = 1.00 M
  80. You have had 0 queries where a join could not use an index properly
  81. Your joins seem to be using indexes properly
  82.  
  83. OPEN FILES LIMIT
  84. Current open_files_limit = 61510 files
  85. The open_files_limit should typically be set to at least 2x-3x
  86. that of table_cache if you have heavy MyISAM usage.
  87. Your open_files_limit value seems to be fine
  88.  
  89. TABLE CACHE
  90. Current table_open_cache = 30000 tables
  91. Current table_definition_cache = 256 tables
  92. You have a total of 209 tables
  93. You have 295 open tables.
  94. The table_cache value seems to be fine
  95.  
  96. TEMP TABLES
  97. Current max_heap_table_size = 16 M
  98. Current tmp_table_size = 16 M
  99. Of 16790 temp tables, 0% were created on disk
  100. Created disk tmp tables ratio seems fine
  101.  
  102. TABLE SCANS
  103. Current read_buffer_size = 1 M
  104. Current table scan ratio = 4 : 1
  105. read_buffer_size seems to be fine
  106.  
  107. TABLE LOCKING
  108. Current Lock Wait ratio = 1 : 5115
  109. Your table locking seems to be fine
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement