mysql my.cnf
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-external-locking
back_log = 2000
key_buffer = 256M
max_allowed_packet = 2M
table_cache = 512
join_buffer_size = 64M
sort_buffer_size = 32M
read_buffer_size = 32M
read_rnd_buffer_size = 64M
myisam_sort_buffer_size = 64M
query_cache_size = 64M
query_cache_limit = 8M
max_tmp_tables = 128
tmp_table_size = 256M
thread_cache_size = 256
thread_concurrency = 4
wait_timeout = [COLOR=#0000FF]3600
interactive_timeout = [COLOR=#0000FF]3600
myisam_repair_threads = 1
myisam-recover = DEFAULT
slow_query_log = 1
long_query_time = 0.1
low_priority_updates
delay_key_write = ALL
max_connections = 1024
max_connect_errors = 99999999
skip-name-resolve
relay-log=relay-bin
default_storage_engine = InnoDB
innodb_file_per_table
innodb_file_format = “Barracuda”
innodb_data_home_dir = /data/mysqldata/
innodb_data_file_path = ibdata1:100M:autoextend
innodb_log_group_home_dir = /data/mysqldata/
innodb_buffer_pool_size = 38580M
innodb_additional_mem_pool_size = 100M
innodb_log_file_size = [COLOR=#0000FF]1024M
innodb_log_buffer_size = [COLOR=#0000FF]128M
innodb_flush_log_at_trx_commit = 2
innodb_lock_wait_timeout = 50
innodb_thread_concurrency = 40
innodb_flush_method = O_DIRECT
#innodb_force_recovery = 6
#transaction-isolation = READ-COMMITTED
innodb_io_capacity = 500
auto_increment_offset=2
auto_increment_increment=2
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 8M
write_buffer = 8M
I know there’s one setting may have some problem
[COLOR=#FF0000]innodb_log_file_size = 100M
According to this [URL=“How to calculate a good InnoDB log file size - Percona Database Performance Blog”]http://www.mysqlperformanceblog.com/...log-file-size/[/URL]
I cauculated that our server should be [COLOR=#FF0000]innodb_log_file_size = 1024M,
I already choose one server to apply this setting and wait to see what will happen
[COLOR=#0000FF]Ps: This doesn’t fix the problem at all, the server still has this problem.
This issue has scratched my head for a few weeks, hope someone can give me some idea, thks.