Advertisement
Guest User

Untitled

a guest
May 17th, 2014
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.25 KB | None | 0 0
  1. >> MySQLTuner 1.3.0 - Major Hayden <major@mhtx.net>
  2. >> Bug reports, feature requests, and downloads at http://mysqltuner.com/
  3. >> Run with '--help' for additional options and output filtering
  4. [OK] Currently running supported MySQL version 5.0.96
  5. [OK] Operating on 64-bit architecture
  6.  
  7. -------- Storage Engine Statistics -------------------------------------------
  8. [--] Status: ERROR 1109 (42S02) at line 1: Unknown table 'ENGINES' in information_schema
  9. Use of uninitialized value in concatenation (.) or string at ./mysqltuner.pl
  10. line 547 (#1)
  11. (W uninitialized) An undefined value was used as if it were already
  12. defined. It was interpreted as a "" or a 0, but maybe it was a mistake.
  13. To suppress this warning assign a defined value to your variables.
  14.  
  15. To help you figure out what was undefined, perl tells you what operation
  16. you used the undefined value in. Note, however, that perl optimizes your
  17. program and the operation displayed in the warning may not necessarily
  18. appear literally in your program. For example, "that $foo" is
  19. usually optimized into "that " . $foo, and the warning will refer to
  20. the concatenation (.) operator, even though there is no . in your
  21. program.
  22.  
  23.  
  24. [--] Data in MyISAM tables: 6G (Tables: 653)
  25. [--] Data in MEMORY tables: 249K (Tables: 3)
  26. [!!] Total fragmented tables: 22
  27.  
  28. -------- Security Recommendations -------------------------------------------
  29. [OK] All database users have passwords assigned
  30.  
  31. -------- Performance Metrics -------------------------------------------------
  32. [--] Up for: 16h 45m 38s (643K q [10.667 qps], 37K conn, TX: 6B, RX: 136M)
  33. [--] Reads / Writes: 79% / 21%
  34. [--] Total buffers: 2.9G global + 64.5M per thread (100 max threads)
  35. [OK] Maximum possible memory usage: 9.2G (77% of installed RAM)
  36. [OK] Slow queries: 0% (517/643K)
  37. [OK] Highest usage of available connections: 23% (23/100)
  38. [OK] Key buffer size / total MyISAM indexes: 1.5G/3.7G
  39. [OK] Key buffer hit rate: 100.0% (824M cached / 223K reads)
  40. [OK] Query cache efficiency: 37.2% (161K cached / 434K selects)
  41. [OK] Query cache prunes per day: 0
  42. [OK] Sorts requiring temporary tables: 9% (5K temp sorts / 60K sorts)
  43. [OK] Temporary tables created on disk: 18% (3K on disk / 21K total)
  44. [OK] Thread cache hit rate: 97% (1K created / 37K connections)
  45. [OK] Table cache hit rate: 98% (840 open / 855 opened)
  46. [OK] Open file limit used: 71% (1K/2K)
  47. [OK] Table locks acquired immediately: 99% (516K immediate / 521K locks)
  48.  
  49. -------- Recommendations -----------------------------------------------------
  50. General recommendations:
  51. Run OPTIMIZE TABLE to defragment tables for better performance
  52. MySQL started within last 24 hours - recommendations may be inaccurate
  53. Enable the slow query log to troubleshoot bad queries
  54.  
  55.  
  56. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  57.  
  58. -- MYSQL PERFORMANCE TUNING PRIMER --
  59. - By: Matthew Montgomery -
  60.  
  61. MySQL Version 5.0.96 x86_64
  62.  
  63. Uptime = 0 days 16 hrs 45 min 55 sec
  64. Avg. qps = 10
  65. Total Questions = 643860
  66. Threads Connected = 3
  67.  
  68. Warning: Server has not been running for at least 48hrs.
  69. It may not be safe to use these recommendations
  70.  
  71. To find out more information on how each of these
  72. runtime variables effects performance visit:
  73. http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html
  74. Visit http://www.mysql.com/products/enterprise/advisors.html
  75. for info about MySQL's Enterprise Monitoring and Advisory Service
  76.  
  77. SLOW QUERIES
  78. The slow query log is NOT enabled.
  79. Current long_query_time = 10 sec.
  80. You have 518 out of 643916 that take longer than 10 sec. to complete
  81. Your long_query_time seems to be fine
  82.  
  83. BINARY UPDATE LOG
  84. The binary update log is NOT enabled.
  85. You will not be able to do point in time recovery
  86. See http://dev.mysql.com/doc/refman/5.0/en/point-in-time-recovery.html
  87.  
  88. WORKER THREADS
  89. Current thread_cache_size = 4
  90. Current threads_cached = 0
  91. Current threads_per_sec = 1
  92. Historic threads_per_sec = 0
  93. Your thread_cache_size is fine
  94.  
  95. MAX CONNECTIONS
  96. Current max_connections = 100
  97. Current threads_connected = 7
  98. Historic max_used_connections = 23
  99. The number of used connections is 23% of the configured maximum.
  100. Your max_connections variable seems to be fine.
  101.  
  102. No InnoDB Support Enabled!
  103.  
  104. MEMORY USAGE
  105. Max Memory Ever Allocated : 4.21 G
  106. Configured Max Per-thread Buffers : 6.29 G
  107. Configured Max Global Buffers : 2.76 G
  108. Configured Max Memory Limit : 9.06 G
  109. Physical Memory : 11.81 G
  110. Max memory limit seem to be within acceptable norms
  111.  
  112. KEY BUFFER
  113. Current MyISAM index space = 3.65 G
  114. Current key_buffer_size = 1.51 G
  115. Key cache miss rate is 1 : 3685
  116. Key buffer free ratio = 67 %
  117. Your key_buffer_size seems to be fine
  118.  
  119. QUERY CACHE
  120. Query cache is enabled
  121. Current query_cache_size = 256 M
  122. Current query_cache_used = 23 M
  123. Current query_cache_limit = 32 M
  124. Current Query cache Memory fill ratio = 9.14 %
  125. Current query_cache_min_res_unit = 4 K
  126. Your query_cache_size seems to be too high.
  127. Perhaps you can use these resources elsewhere
  128. MySQL won't cache query results that are larger than query_cache_limit in size
  129.  
  130. SORT OPERATIONS
  131. Current sort_buffer_size = 32 M
  132. Current read_rnd_buffer_size = 32 M
  133. Sort buffer seems to be fine
  134.  
  135. JOINS
  136. Current join_buffer_size = 132.00 K
  137. You have had 0 queries where a join could not use an index properly
  138. Your joins seem to be using indexes properly
  139.  
  140. OPEN FILES LIMIT
  141. Current open_files_limit = 2110 files
  142. The open_files_limit should typically be set to at least 2x-3x
  143. that of table_cache if you have heavy MyISAM usage.
  144. Your open_files_limit value seems to be fine
  145.  
  146. TABLE CACHE
  147. Current table_cache value = 1000 tables
  148. You have a total of 673 tables
  149. You have 840 open tables.
  150. The table_cache value seems to be fine
  151.  
  152. TEMP TABLES
  153. Current max_heap_table_size = 128 M
  154. Current tmp_table_size = 256 M
  155. Of 17794 temp tables, 18% were created on disk
  156. Effective in-memory tmp_table_size is limited to max_heap_table_size.
  157. Created disk tmp tables ratio seems fine
  158.  
  159. TABLE SCANS
  160. Current read_buffer_size = 128 K
  161. Current table scan ratio = 104 : 1
  162. read_buffer_size seems to be fine
  163.  
  164. TABLE LOCKING
  165. Current Lock Wait ratio = 1 : 101
  166. You may benefit from selective use of InnoDB.
  167. If you have long running SELECT's against MyISAM tables and perform
  168. frequent updates consider setting 'low_priority_updates=1'
  169. If you have a high concurrency of inserts on Dynamic row-length tables
  170. consider setting 'concurrent_insert=2'.
  171.  
  172.  
  173. +++++++++++++++++++++++++++++++++++++++++
  174. cat /etc/my.cnf
  175.  
  176. [mysqld]
  177. skip-innodb
  178. skip-bdb
  179. datadir=/var/lib/mysql
  180. socket=/var/lib/mysql/mysql.sock
  181. user=mysql
  182. # Default to using old password format for compatibility with mysql 3.x
  183. # clients (those using the mysqlclient10 compatibility package).
  184. old_passwords=1
  185.  
  186. query_cache_size=256M
  187. query_cache_limit=32M
  188. key_buffer_size=1548M
  189. sort_buffer_size=32M
  190. read_rnd_buffer_size=32M
  191. thread_cache_size=4
  192. table_cache=1000
  193. tmp_table_size=256M
  194. max_heap_table_size=128M
  195. open_files_limit=2000
  196. innodb_buffer_pool_size=1024M
  197.  
  198. # Disabling symbolic-links is recommended to prevent assorted security risks;
  199. # to do so, uncomment this line:
  200. symbolic-links=0
  201.  
  202. # vbulletin allow mysql 3 char. search
  203. ft_min_word_len=3
  204.  
  205. [myisamchk]
  206. ft_min_word_len=3
  207.  
  208. [mysqld_safe]
  209. log-error=/var/log/mysqld.log
  210. pid-file=/var/run/mysqld/mysqld.pid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement