Elnick
Проверенные
- Сообщения
- 245
- Реакции
- 89
- Баллы
- 8,130
Имею VDS с оперативкой 1Gb
Почти вся база переведена в InnoDb
файл my.cnf
[mysqld]
default_storage_engine=innodb
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-external-locking
key_buffer_size = 2M
max_allowed_packet = 2M
table_open_cache = 500
table_definition_cache = 100
join_buffer_size = 16M
sort_buffer_size = 256K
read_buffer_size = 256K
net_buffer_length = 4K
read_rnd_buffer_size = 256K
myisam_sort_buffer_size = 256K
thread_cache_size = 8
query_cache_size = 64M
query_cache_type = 1
query_cache_limit = 2M
tmp_table_size = 32M
max_heap_table_size = 32M
expire_logs_days = 9
max_connections = 70
max_user_connections = 50
# binary logging is required for replication
log-bin=mysql-bin
# binary logging format - mixed recommended
binlog_format=mixed
# but will not function as a master if omitted
server-id = 1
# Uncomment the following if you are using InnoDB tables
innodb_data_home_dir = /var/lib/mysql
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /var/lib/mysql
innodb_buffer_pool_size = 32M
innodb_additional_mem_pool_size = 4M
innodb_log_file_size = 16M
innodb_log_buffer_size = 4M
innodb_flush_log_at_trx_commit = 2
innodb_lock_wait_timeout = 50
innodb_thread_concurrency = 8
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[myisamchk]
key_buffer_size = 8M
sort_buffer_size = 8M
# read_buffer = 1M
# write_buffer = 1M
[mysqlhotcopy]
interactive-timeout
нажатием F5 загоняю mysql в ступор.
что и как можно ограничить возможно кто то подскажет?
Почти вся база переведена в InnoDb
файл my.cnf
[mysqld]
default_storage_engine=innodb
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-external-locking
key_buffer_size = 2M
max_allowed_packet = 2M
table_open_cache = 500
table_definition_cache = 100
join_buffer_size = 16M
sort_buffer_size = 256K
read_buffer_size = 256K
net_buffer_length = 4K
read_rnd_buffer_size = 256K
myisam_sort_buffer_size = 256K
thread_cache_size = 8
query_cache_size = 64M
query_cache_type = 1
query_cache_limit = 2M
tmp_table_size = 32M
max_heap_table_size = 32M
expire_logs_days = 9
max_connections = 70
max_user_connections = 50
# binary logging is required for replication
log-bin=mysql-bin
# binary logging format - mixed recommended
binlog_format=mixed
# but will not function as a master if omitted
server-id = 1
# Uncomment the following if you are using InnoDB tables
innodb_data_home_dir = /var/lib/mysql
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /var/lib/mysql
innodb_buffer_pool_size = 32M
innodb_additional_mem_pool_size = 4M
innodb_log_file_size = 16M
innodb_log_buffer_size = 4M
innodb_flush_log_at_trx_commit = 2
innodb_lock_wait_timeout = 50
innodb_thread_concurrency = 8
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[myisamchk]
key_buffer_size = 8M
sort_buffer_size = 8M
# read_buffer = 1M
# write_buffer = 1M
[mysqlhotcopy]
interactive-timeout
нажатием F5 загоняю mysql в ступор.
что и как можно ограничить возможно кто то подскажет?