Aşağıdaki hatalar performans kontrolünde verildi.
Sorunlarla ilgili my.cnf hangi satırları düzeltmeliyim ?
>> MySQLTuner 1.4.0 - Major Hayden <major@mhtx.net>
>> Bug reports, feature requests, and downloads at
http://mysqltuner.com/
>> Run with '--help' for additional options and output filtering
[OK] Currently running supported MySQL version 5.5.42-cll
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MRG_MYISAM
[--] Data in MyISAM tables: 1G (Tables: 5139)
[--] Data in InnoDB tables: 66M (Tables: 1614)
[--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17)
[!!] Total fragmented tables: 1021
-------- Security Recommendations -------------------------------------------
[OK] All database users have passwords assigned
-------- Performance Metrics -------------------------------------------------
[--] Up for: 18s (11K q [663.944 qps], 155 conn, TX: 56M, RX: 845K)
[--] Reads / Writes: 96% / 4%
[--] Total buffers: 448.0M global + 28.4M per thread (1000 max threads)
[!!] Maximum possible memory usage: 28.1G (367% of installed RAM)
[OK] Slow queries: 0% (0/11K)
[OK] Highest usage of available connections: 0% (9/1000)
[OK] Key buffer size / total MyISAM indexes: 256.0M/118.5M
[!!] Key buffer hit rate: 88.0% (21K cached / 2K reads)
[OK] Query cache efficiency: 50.1% (5K cached / 11K selects)
[OK] Query cache prunes per day: 0
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 2K sorts)
[!!] Temporary tables created on disk: 97% (1K on disk / 1K total)
[!!] Thread cache is disabled
[OK] Table cache hit rate: 48% (400 open / 821 opened)
[OK] Open file limit used: 7% (750/10K)
[OK] Table locks acquired immediately: 99% (5K immediate / 5K locks)
[OK] InnoDB buffer pool / data size: 128.0M/66.7M
[OK] InnoDB log waits: 0
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
MySQL started within last 24 hours - recommendations may be inaccurate
Reduce your overall MySQL memory footprint for system stability
When making adjustments, make tmp_table_size/max_heap_table_size equal
Reduce your SELECT DISTINCT queries without LIMIT clauses
Set thread_cache_size to 4 as a starting value
Variables to adjust:
*** MySQL's maximum memory usage is dangerously high ***
*** Add RAM before increasing MySQL buffer variables ***
tmp_table_size (> 16M)
max_heap_table_size (> 16M)
thread_cache_size (start at 4)
Ayrıca my.cnf dosyası aşağıdadır.
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-external-locking
key_buffer_size = 256M
#table_open_cache = 1024M
sort_buffer_size = 12M
read_buffer_size = 12M
read_rnd_buffer_size = 4M
#thread_cache_size = 512M
query_cache_size= 32M
myisam_sort_buffer_size = 64M
# Try number of CPU's*2 for thread_concurrency
#thread_concurrency = 8
max_connections = 1000
max_user_connections = 500
interactive_timeout=15
wait_timeout=15
connect_timeout=15
server-id = 1
default-storage-engine=MyISAM
innodb_file_per_table=1
open_files_limit=10000
long_query_time=1
log_slow_queries = /var/lib/mysql/mysqld_slow.log
log_error = /var/log/mysql/mysql_error.log
[safe_mysqld]
err-log=/var/log/mysql/mysqld.log
pid-file=/var/lib/mysql/mysql.pid
[mysqldump]
quick
max_allowed_packet = 1024M
[mysql]
no-auto-rehash