Hi i have 24Gb Ram.plesk 11.5.my site is very slow.when i run mysqltuner.pl it shows warning
>> MySQLTuner 1.3.0 - Major Hayden <[email protected]>
>> 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.33-cll-lve
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MRG_MYISAM
[--] Data in MyISAM tables: 1G (Tables: 1049)
[--] Data in InnoDB tables: 18M (Tables: 801)
[--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17)
[!!] Total fragmented tables: 809
-------- Performance Metrics -------------------------------------------------
[--] Up for: 23m 39s (242K q [171.055 qps], 2K conn, TX: 1B, RX: 19M)
[--] Reads / Writes: 98% / 2%
[--] Total buffers: 3.0G global + 1.0G per thread (500 max threads)
[!!] Maximum possible memory usage: 503.2G (2138% of installed RAM)
[OK] Slow queries: 0% (0/242K)
[OK] Highest usage of available connections: 82% (413/500)
[OK] Key buffer size / total MyISAM indexes: 1.0G/219.6M
[OK] Key buffer hit rate: 99.9% (8M cached / 7K reads)
[!!] Query cache efficiency: 0.0% (0 cached / 161K selects)
[OK] Query cache prunes per day: 0
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 32K sorts)
[!!] Temporary tables created on disk: 33% (4K on disk / 13K total)
[OK] Thread cache hit rate: 63% (741 created / 2K connections)
[OK] Table cache hit rate: 93% (2K open / 2K opened)
[OK] Open file limit used: 49% (2K/4K)
[OK] Table locks acquired immediately: 98% (154K immediate / 156K locks)
[OK] InnoDB buffer pool / data size: 1000.0M/19.0M
[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
Enable the slow query log to troubleshoot bad queries
When making adjustments, make tmp_table_size/max_heap_table_size equal
Reduce your SELECT DISTINCT queries without LIMIT clauses
Variables to adjust:
*** MySQL's maximum memory usage is dangerously high ***
*** Add RAM before increasing MySQL buffer variables ***
query_cache_limit (> 1G, or use smaller result sets)
tmp_table_size (> 16M)
max_heap_table_size (> 16M)
my current my.cnf is
[mysqld]
local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
skip-host-cache
skip-name-resolve
max_allowed_packet = 256M
sort_buffer_size = 512M
max_connections=500
wait-timeout=1800
interactive-timeout=60
query_cache_size = 1024M
query_cache_limit = 1024M
query-cache-type = 2
#long_query_time=0.3
table_cache = 2000
thread_cache_size=8
key_buffer_size = 1024M
read_buffer_size=256M
read_rnd_buffer_size=256M
myisam_sort_buffer_size=256M
innodb_flush_log_at_trx_commit=2
innodb_buffer_pool_size=1000M
innodb_additional_mem_pool_size=20M
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
# Forced OLD_PASSWORD format is turned OFF by Plesk
#old_passwords=1
# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:
# symbolic-links=0
>> MySQLTuner 1.3.0 - Major Hayden <[email protected]>
>> 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.33-cll-lve
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MRG_MYISAM
[--] Data in MyISAM tables: 1G (Tables: 1049)
[--] Data in InnoDB tables: 18M (Tables: 801)
[--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17)
[!!] Total fragmented tables: 809
-------- Performance Metrics -------------------------------------------------
[--] Up for: 23m 39s (242K q [171.055 qps], 2K conn, TX: 1B, RX: 19M)
[--] Reads / Writes: 98% / 2%
[--] Total buffers: 3.0G global + 1.0G per thread (500 max threads)
[!!] Maximum possible memory usage: 503.2G (2138% of installed RAM)
[OK] Slow queries: 0% (0/242K)
[OK] Highest usage of available connections: 82% (413/500)
[OK] Key buffer size / total MyISAM indexes: 1.0G/219.6M
[OK] Key buffer hit rate: 99.9% (8M cached / 7K reads)
[!!] Query cache efficiency: 0.0% (0 cached / 161K selects)
[OK] Query cache prunes per day: 0
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 32K sorts)
[!!] Temporary tables created on disk: 33% (4K on disk / 13K total)
[OK] Thread cache hit rate: 63% (741 created / 2K connections)
[OK] Table cache hit rate: 93% (2K open / 2K opened)
[OK] Open file limit used: 49% (2K/4K)
[OK] Table locks acquired immediately: 98% (154K immediate / 156K locks)
[OK] InnoDB buffer pool / data size: 1000.0M/19.0M
[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
Enable the slow query log to troubleshoot bad queries
When making adjustments, make tmp_table_size/max_heap_table_size equal
Reduce your SELECT DISTINCT queries without LIMIT clauses
Variables to adjust:
*** MySQL's maximum memory usage is dangerously high ***
*** Add RAM before increasing MySQL buffer variables ***
query_cache_limit (> 1G, or use smaller result sets)
tmp_table_size (> 16M)
max_heap_table_size (> 16M)
my current my.cnf is
[mysqld]
local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
skip-host-cache
skip-name-resolve
max_allowed_packet = 256M
sort_buffer_size = 512M
max_connections=500
wait-timeout=1800
interactive-timeout=60
query_cache_size = 1024M
query_cache_limit = 1024M
query-cache-type = 2
#long_query_time=0.3
table_cache = 2000
thread_cache_size=8
key_buffer_size = 1024M
read_buffer_size=256M
read_rnd_buffer_size=256M
myisam_sort_buffer_size=256M
innodb_flush_log_at_trx_commit=2
innodb_buffer_pool_size=1000M
innodb_additional_mem_pool_size=20M
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
# Forced OLD_PASSWORD format is turned OFF by Plesk
#old_passwords=1
# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:
# symbolic-links=0
Last edited: