was würdet ihr empfehlen?
Code: Select all
TABLE CACHE
Current table_open_cache = 13000 tables
Current table_definition_cache = 1024 tables
You have a total of 12366 tables
You have 12413 open tables.
Current table_cache hit rate is 25%, while 95% of your table cache is in use
You should probably increase your table_cache
You should probably increase your table_definition_cache value.
TEMP TABLES
Current max_heap_table_size = 64 M
Current tmp_table_size = 64 M
Of 2104 temp tables, 49% were created on disk
Perhaps you should increase your tmp_table_size and/or max_heap_table_size
to reduce the number of disk-based temporary tables
Note! BLOB and TEXT columns are not allow in memory tables.
If you are using these columns raising these values might not impact your
ratio of on disk temp tables.
TABLE LOCKING
Current Lock Wait ratio = 1 : 552
You may benefit from selective use of InnoDB.
If you have long running SELECT's against MyISAM tables and perform
frequent updates consider setting 'low_priority_updates=1'
If you have a high concurrency of inserts on Dynamic row-length tables
consider setting 'concurrent_insert=2'.
Code: Select all
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = -5
open_files_limit = 30000
back_log = 75
skip-external-locking
skip_name_resolve
skip_locking
#
key_buffer = 384M
max_allowed_packet = 16M
thread_stack = 128K
thread_cache_size = 384
#thread_cache=32
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
#myisam-recover = BACKUP
max_connections = 400
interactive_timeout=100
wait_timeout=7200
connect_timeout=10
table_open_cache = 13000
table_definition_cache = 1024
max_heap_table_size = 64M
max_allowed_packet = 64M
read_rnd_buffer_size = 524288
bulk_insert_buffer_size = 8M
join_buffer_size = 1M
#max_connect_errors = 10
#low_priority_updates = 1
#concurrent_insert = 2
thread_concurrency = 2
query_cache_type = 1
#query_cache_limit = 1M
query_cache_limit = 4M
#query_cache_size = 32M
query_cache_size = 128M
query_prealloc_size = 65536
query_alloc_block_size = 131072
default-storage-engine = MyISAM
log_slow_queries = /var/log/mysql/mysql-slow.log
long_query_time = 2
[mysqldump]
quick
#quote-names
max_allowed_packet = 16M
[mysql]
#no-auto-rehash # faster start of mysql but no tab completition
no-auto-rehash
[isamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M
[myisamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M
[mysqlhotcopy]
interactive-timeout
Code: Select all
top - 14:36:31 up 23:20, 1 user, load average: 0.17, 0.19, 0.18
Tasks: 471 total, 2 running, 469 sleeping, 0 stopped, 0 zombie
Cpu(s): 2.6%us, 0.4%sy, 0.0%ni, 95.9%id, 1.1%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 16406500k total, 10293312k used, 6113188k free, 1121120k buffers
Swap: 1998840k total, 0k used, 1998840k free, 4485120k cached
Code: Select all
-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.1.66-0+squeeze1-log
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: -Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 429M (Tables: 11032)
[--] Data in InnoDB tables: 112M (Tables: 1263)
[--] Data in MEMORY tables: 0B (Tables: 48)
[!!] Total fragmented tables: 1341
-------- Performance Metrics -------------------------------------------------
[--] Up for: 23m 28s (283K q [201.112 qps], 13K conn, TX: 1B, RX: 43M)
[--] Reads / Writes: 88% / 12%
[--] Total buffers: 650.0M global + 14.1M per thread (100 max threads)
[OK] Maximum possible memory usage: 2.0G (12% of installed RAM)
[OK] Slow queries: 2% (7K/283K)
[OK] Highest usage of available connections: 6% (6/100)
[OK] Key buffer size / total MyISAM indexes: 256.0M/126.4M
[OK] Key buffer hit rate: 99.8% (3M cached / 7K reads)
[OK] Query cache efficiency: 77.8% (197K cached / 253K selects)
[OK] Query cache prunes per day: 0
[OK] Sorts requiring temporary tables: 1% (104 temp sorts / 6K sorts)
[!!] Joins performed without indexes: 345
[!!] Temporary tables created on disk: 28% (1K on disk / 4K total)
[OK] Thread cache hit rate: 99% (6 created / 13K connections)
[!!] Table cache hit rate: 4% (4K open / 98K opened)
[OK] Open file limit used: 20% (6K/30K)
[OK] Table locks acquired immediately: 99% (69K immediate / 69K locks)
[!!] InnoDB data size / buffer pool: 112.5M/8.0M
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
MySQL started within last 24 hours - recommendations may be inaccurate
Adjust your join queries to always utilize indexes
When making adjustments, make tmp_table_size/max_heap_table_size equal
Reduce your SELECT DISTINCT queries without LIMIT clauses
Increase table_cache gradually to avoid file descriptor limits
Variables to adjust:
join_buffer_size (> 2.0M, or always use indexes with joins)
tmp_table_size (> 64M)
max_heap_table_size (> 64M)
table_cache (> 4096)
innodb_buffer_pool_size (>= 112M)