Cytuj
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.1.55
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 1G (Tables: 2810)
[--] Data in InnoDB tables: 128K (Tables: 8)
[--] Data in MEMORY tables: 7M (Tables: 3)
[!!] Total fragmented tables: 280
-------- Security Recommendations -------------------------------------------
[OK] All database users have passwords assigned
-------- Performance Metrics -------------------------------------------------
[--] Up for: 37d 7h 16m 48s (308M q [95.725 qps], 14M conn, TX: 1332B, RX: 61B)
[--] Reads / Writes: 79% / 21%
[--] Total buffers: 1.4G global + 520.5M per thread (800 max threads)
[!!] Maximum possible memory usage: 408.0G (5228% of installed RAM)
[OK] Slow queries: 0% (526/308M)
[OK] Highest usage of available connections: 22% (181/800)
[OK] Key buffer size / total MyISAM indexes: 32.0M/402.9M
[OK] Key buffer hit rate: 99.9% (1293B cached / 1B reads)
[OK] Query cache efficiency: 58.7% (139M cached / 238M selects)
[!!] Query cache prunes per day: 26083
[OK] Sorts requiring temporary tables: 0% (51K temp sorts / 21M sorts)
[!!] Joins performed without indexes: 184685
[!!] Temporary tables created on disk: 27% (4M on disk / 16M total)
[OK] Thread cache hit rate: 99% (181 created / 14M connections)
[!!] Table cache hit rate: 15% (6K open / 38K opened)
[OK] Open file limit used: 68% (8K/13K)
[OK] Table locks acquired immediately: 97% (213M immediate / 218M locks)
[OK] InnoDB data size / buffer pool: 128.0K/1.0G
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
Reduce your overall MySQL memory footprint for system stability
Enable the slow query log to troubleshoot bad queries
Increasing the query_cache size over 128M may reduce performance
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:
*** MySQL's maximum memory usage is dangerously high ***
*** Add RAM before increasing MySQL buffer variables ***
query_cache_size (> 256M) [see warning above]
join_buffer_size (> 512.0M, or always use indexes with joins)
tmp_table_size (> 16M)
max_heap_table_size (> 500M)
table_cache (> 6144)
mój my.cnf
Cytuj
local-infile=0
concurrent_insert=2
skip-external-locking
query_cache_limit=16M
query_cache_size=256M
query_cache_type=1
max_connections=800
#interactive_timeout=100
#wait_timeout=100
connect_timeout=10
thread_cache_size=256
key_buffer=32M
join_buffer=512M
tmp_table_size=16M
max_allowed_packet=16M
max_heap_table_size=500M
table_cache=6144
#record_buffer=1M
sort_buffer_size=4M
read_buffer_size=4M
#max_connect_errors=10
# Try number of CPU's*2 for thread_concurrency
thread_concurrency=8
myisam_sort_buffer_size=128M
server-id=1
innodb_additional_mem_pool_size=16M
innodb_buffer_pool_size = 1G
innodb_log_buffer_size = 64M
innodb_log_file_size = 128M
innodb_file_per_table
innodb_data_file_path = ibdata1:128M:autoextend
innodb_autoextend_increment = 10
innodb_file_io_threads = 8
#innodb_write_io_threads = 4
#innodb_read_io_threads = 4
innodb_thread_concurrency = 16
#innodb_flush_method=O_DIRECT
innodb_flush_log_at_trx_commit = 2
innodb_log_files_in_group = 2
innodb_lock_wait_timeout = 120
innodb_max_dirty_pages_pct = 90
[safe_mysqld]
err-log=/var/log/mysqld.log
open_files_limit=8192
[mysqldump]
quick
max_allowed_packet=16M
[mysql]
no-auto-rehash
#safe-updates
[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
Co mogę poprawić ?














