Prosiłbym o ocenę konfiguracji serwera MySQL,
myślę że coś jest nie tak, ponieważ ta baza na słabszej maszynie i ze słabszymi parametrami działała szybciej i sprawniej niż teraz:
Cytat
[mysqld]
user = mysql
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
skip-external-locking
innodb_buffer_pool_size = 2G
innodb_file_per_table = 1
innodb_log_buffer_size = 8M
innodb_log_file_size = 128M
join_buffer_size = 32M
key_buffer = 32M
key_buffer_size = 512M
max_allowed_packet = 16M
max_connections = 50
max_heap_table_size = 1G
max_user_connections = 0
myisam-recover = BACKUP
myisam_sort_buffer_size = 256M
myisam_use_mmap = 1
open_files_limit = 65535
query_cache_limit = 64M
query_cache_type = 1
query_cache_size = 64M
read_rnd_buffer_size = 1M
table_cache = 6400
table_open_cache = 7500
thread_cache_size = 25
thread_concurrency = 10
thread_stack = 192K
tmp_table_size = 1GB
log_error = /var/log/mysql/error.log
log_slow_queries = /var/log/mysql/mysql-slow.log
long_query_time = 5
expire_logs_days = 10
max_binlog_size = 128M
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
[mysql]
[isamchk]
key_buffer = 16M
user = mysql
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
skip-external-locking
innodb_buffer_pool_size = 2G
innodb_file_per_table = 1
innodb_log_buffer_size = 8M
innodb_log_file_size = 128M
join_buffer_size = 32M
key_buffer = 32M
key_buffer_size = 512M
max_allowed_packet = 16M
max_connections = 50
max_heap_table_size = 1G
max_user_connections = 0
myisam-recover = BACKUP
myisam_sort_buffer_size = 256M
myisam_use_mmap = 1
open_files_limit = 65535
query_cache_limit = 64M
query_cache_type = 1
query_cache_size = 64M
read_rnd_buffer_size = 1M
table_cache = 6400
table_open_cache = 7500
thread_cache_size = 25
thread_concurrency = 10
thread_stack = 192K
tmp_table_size = 1GB
log_error = /var/log/mysql/error.log
log_slow_queries = /var/log/mysql/mysql-slow.log
long_query_time = 5
expire_logs_days = 10
max_binlog_size = 128M
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
[mysql]
[isamchk]
key_buffer = 16M
informacje o sprzęcie:
product: AMD Athlon II X3 450 Processor, 3200MHz
RAM 4 + 2GB