Hello,
I have been working around until I finally came looking for your help.
Our server has got 3GB dedicated Ram and uses exclusively MyIsam tables.
Here is the my.cnf file:
When we run ./mysqltuner.pl we get this result after more than 24 hours use:
Thanks for helping me out.
I have been working around until I finally came looking for your help.
Our server has got 3GB dedicated Ram and uses exclusively MyIsam tables.
Here is the my.cnf file:
Code:
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
[mysqld]
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
skip-external-locking
bind-address = 127.0.0.1
max_allowed_packet = 64M
thread_stack = 192K
thread_cache_size = 8
key_buffer = 768M
query_cache_size = 128M
table_cache = 64
query_cache_type = 1
query_cache_limit = 10M
default-storage-engine=MyISAM
wait_timeout = 30
interactive_timeout = 30
tmp_table_size = 32M
max_heap_table_size = 32M
max_connections = 50
sort_buffer_size = 4M
read_rnd_buffer_size = 2M
init_connect='SET collation_connection = utf8_unicode_ci'
init_connect='SET NAMES utf8'
character-set-server = utf8
collation-server = utf8_unicode_ci
skip-character-set-client-handshake
default_storage_engine=MyISAM
skip-innodb
log-slow-queries=/var/log/mysql/slow-queries.log
[client]
default-character-set = utf8
myisam-recover = BACKUP
expire_logs_days = 1
max_binlog_size = 10M
[mysqldump]
quick
quote-names
When we run ./mysqltuner.pl we get this result after more than 24 hours use:
Code:
>> MySQLTuner 1.4.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] Logged in using credentials from debian maintenance account.
[OK] Currently running supported MySQL version 5.5.44-0ubuntu0.12.04.1-log
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED -InnoDB +MRG_MYISAM
[--] Data in MyISAM tables: 248M (Tables: 369)
[--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17)
[!!] Total fragmented tables: 1
-------- Security Recommendations -------------------------------------------
[OK] All database users have passwords assigned
-------- Performance Metrics -------------------------------------------------
[--] Up for: 1d 3h 7m 31s (78M q [803.119 qps], 126K conn, TX: 107B, RX: 30B)
[--] Reads / Writes: 98% / 2%
[--] Total buffers: 928.0M global + 6.4M per thread (50 max threads)
[OK] Maximum possible memory usage: 1.2G (41% of installed RAM)
[OK] Slow queries: 0% (11/78M)
[OK] Highest usage of available connections: 72% (36/50)
[OK] Key buffer size / total MyISAM indexes: 768.0M/200.1M
[OK] Key buffer hit rate: 99.8% (3B cached / 6M reads)
[OK] Query cache efficiency: 77.3% (60M cached / 77M selects)
[!!] Query cache prunes per day: 14481876
[OK] Sorts requiring temporary tables: 0% (3 temp sorts / 5M sorts)
[!!] Joins performed without indexes: 717
[OK] Temporary tables created on disk: 5% (88K on disk / 1M total)
[OK] Thread cache hit rate: 99% (386 created / 126K connections)
[!!] Table cache hit rate: 0% (64 open / 218K opened)
[OK] Open file limit used: 10% (104/1K)
[OK] Table locks acquired immediately: 99% (39M immediate / 39M locks)
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
Adjust your join queries to always utilize indexes
Increase table_open_cache gradually to avoid file descriptor limits
Read this before increasing table_open_cache over 64: http://bit.ly/1mi7c4C
Variables to adjust:
query_cache_size (> 128M)
join_buffer_size (> 128.0K, or always use indexes with joins)
table_open_cache (> 64)
Thanks for helping me out.
Last edited by a moderator: