Habe hier immer noch Probleme mit TEMP TABLES ...
Bin nach den Empfehlungen von tuning-primer vorgegangen, mitlerweile bin ich bei max_heap_table_size und tmp_table_size auf 1.00 G.
Wenn mysql startet oder längere Abfrgaen laufen geht die Load ziemlich hoch, jetzt empfiehlt mir tuning-primer nochmals die TEMP TABLES höher einzustellen - was würdet Ihr mir empfehlen?
Mem: 4117176k total, 3127740k used, 989436k free, 271712k buffers
Swap: 4200988k total, 0k used, 4200988k free, 1761068k cached
Hier mal der output:
Code: Select all
SLOW QUERIES
The slow query log is enabled.
Current long_query_time = 2 sec.
You have 427612 out of 15745317 that take longer than 2 sec. to complete
Your long_query_time seems to be fine
BINARY UPDATE LOG
The binary update log is enabled
WORKER THREADS
Current thread_cache_size = 32
Current threads_cached = 28
Current threads_per_sec = 0
Historic threads_per_sec = 0
Your thread_cache_size is fine
MAX CONNECTIONS
Current max_connections = 100
Current threads_connected = 2
Historic max_used_connections = 30
The number of used connections is 30% of the configured maximum.
Your max_connections variable seems to be fine.
MEMORY USAGE
Max Memory Ever Allocated : 600 M
Configured Max Per-thread Buffers : 1 G
Configured Max Global Buffers : 154 M
Configured Max Memory Limit : 1 G
Physical Memory : 3.92 G
Max memory limit seem to be within acceptable norms
KEY BUFFER
Current MyISAM index space = 141 M
Current key_buffer_size = 128 M
Key cache miss rate is 1 : 115
Key buffer fill ratio = 100.00 %
You could increase key_buffer_size
It is safe to raise this up to 1/4 of total system memory;
assuming this is a dedicated database server.
QUERY CACHE
Query cache is enabled
Current query_cache_size = 16 M
Current query_cache_used = 10 M
Current query_cache_limit = 2 M
Current Query cache Memory fill ratio = 63.93 %
Current query_cache_min_res_unit = 4 K
MySQL won't cache query results that are larger than query_cache_limit in size
SORT OPERATIONS
Current sort_buffer_size = 1 M
Current read_rnd_buffer_size = 764 K
Sort buffer seems to be fine
JOINS
Current join_buffer_size = 12.00 M
You have had 20396 queries where a join could not use an index properly
You have had 405 joins without keys that check for key usage after each row
join_buffer_size >= 4 M
This is not advised
You should enable "log-queries-not-using-indexes"
Then look for non indexed joins in the slow query log.
OPEN FILES LIMIT
Current open_files_limit = 29000 files
The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.
Your open_files_limit value seems to be fine
TABLE CACHE
Current table_cache value = 11000 tables
You have a total of 10237 tables
You have 10308 open tables.
The table_cache value seems to be fine
TEMP TABLES
Current max_heap_table_size = 1.00 G
Current tmp_table_size = 1.00 G
Of 357884 temp tables, 37% 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 SCANS
Current read_buffer_size = 1020 K
Current table scan ratio = 91 : 1
read_buffer_size seems to be fine
TABLE LOCKING
Current Lock Wait ratio = 1 : 70759
Your table locking seems to be fine