При значении выше 10 в Load Average перестают отдаваться страницы.
Скрин #htop:
[URL=https://yadi.sk/i/qvG_nGCV3Rbiqj]https://yadi.sk/i/qvG_nGCV3Rbiqj[/URL]
Нормально ли выделять такое количество памяти для mysqld?
Настройки my.cnf такие:
Скрытый текст |
|---|
[CODE][client] port = 3306 socket = /var/lib/mysqld/mysqld.sock default-character-set = utf8
[mysqld_safe] nice = 0 socket = /var/lib/mysqld/mysqld.sock
[mysqld]
# Basic mysql server configuration user = mysql port = 3306 basedir = /usr datadir = /var/lib/mysql socket = /var/lib/mysqld/mysqld.sock skip-external-locking default-storage-engine = innodb pid-file = /var/run/mysqld/mysqld.pid transaction-isolation = READ-COMMITTED max_allowed_packet = 16M myisam-recover = BACKUP expire_logs_days = 10 max_binlog_size = 100M
# Cache parameters query_cache_size = 64M query_cache_type=1 table_open_cache = 4096 table_cache=4096 thread_cache_size = 32 key_buffer = 16M key_buffer_size = 16M thread_stack = 256K join_buffer_size = 8M sort_buffer_size = 8M read_buffer_size = 16M
# Parameters for temporary tables tmpdir = /tmp max_heap_table_size = 512M tmp_table_size = 62M
# InnoDB parameters innodb_file_per_table innodb_buffer_pool_size = 512M innodb_additional_mem_pool_size=32M innodb_file_io_threads=8 innodb_lock_wait_timeout=50 innodb_log_buffer_size=8M innodb_flush_log_at_trx_commit = 0 innodb_log_file_size = 64M innodb_flush_method = O_DIRECT
# Database charset parameters character-set-server = utf8 collation-server = utf8_unicode_ci init-connect = "SET NAMES utf8 COLLATE utf8_unicode_ci" skip-character-set-client-handshake skip-name-resolve
[mysqldump] quick quote-names max_allowed_packet = 16M default-character-set = utf8
[mysql]
[isamchk] key_buffer = 16M
# Include additional settings !includedir /etc/mysql/conf.d/ MinSpareServers=7 StartServers=7 MaxClients=7 [/CODE] |
Последние записи из лога ошибок mysql:
Скрытый текст |
|---|
[CODE]Version: '5.5.42' socket: '/var/lib/mysqld/mysqld.sock' port: 3306 MySQL Community Server (GPL) by Remi 180119 13:26:15 [Note] /usr/libexec/mysqld: Normal shutdown
180119 13:26:16 [ERROR] /usr/libexec/mysqld: Sort aborted: Query execution was interrupted 180119 13:26:16 [Note] Event Scheduler: Purging the queue. 0 events 180119 13:26:18 [Warning] /usr/libexec/mysqld: Forcing close of thread 11 user: 'root'
180119 13:26:18 [Warning] /usr/libexec/mysqld: Forcing close of thread 4 user: 'root'
180119 13:26:18 [ERROR] /usr/libexec/mysqld: Sort aborted: Query execution was interrupted 180119 13:26:20 InnoDB: Starting shutdown... 180119 13:26:20 InnoDB: Waiting for 200 pages to be flushed 180119 13:26:22 InnoDB: Shutdown completed; log sequence number 4376971352523 180119 13:26:22 [Note] /usr/libexec/mysqld: Shutdown complete
180119 13:26:22 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended 180119 13:26:24 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 180119 13:26:24 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead. 180119 13:26:24 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead. 180119 13:26:24 [Note] Plugin 'FEDERATED' is disabled. 180119 13:26:24 InnoDB: The InnoDB memory heap is disabled 180119 13:26:24 InnoDB: Mutexes and rw_locks use GCC atomic builtins 180119 13:26:24 InnoDB: Compressed tables use zlib 1.2.3 180119 13:26:24 InnoDB: Using Linux native AIO 180119 13:26:24 InnoDB: Warning: innodb_file_io_threads is deprecated. Please use innodb_read_io_threads and innodb_write_io_threads instead 180119 13:26:24 InnoDB: Initializing buffer pool, size = 1.0G 180119 13:26:24 InnoDB: Completed initialization of buffer pool 180119 13:26:24 InnoDB: highest supported file format is Barracuda. 180119 13:26:24 InnoDB: Waiting for the background threads to start 180119 13:26:25 InnoDB: 5.5.42 started; log sequence number 4376971352523 180119 13:26:25 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306 180119 13:26:25 [Note] - '0.0.0.0' resolves to '0.0.0.0'; 180119 13:26:25 [Note] Server socket created on IP: '0.0.0.0'. 180119 13:26:25 [Warning] 'user' entry 'root@bitrix.localdomain' ignored in --skip-name-resolve mode. 180119 13:26:25 [Warning] 'user' entry '@bitrix.localdomain' ignored in --skip-name-resolve mode. 180119 13:26:25 [Warning] 'proxies_priv' entry '@ root@bitrix.localdomain' ignored in --skip-name-resolve mode. 180119 13:26:26 [Note] Event Scheduler: Loaded 0 events 180119 13:26:26 [Note] /usr/libexec/mysqld: ready for connections. Version: '5.5.42' socket: '/var/lib/mysqld/mysqld.sock' port: 3306 MySQL Community Server (GPL) by Remi 180119 14:47:19 [Note] /usr/libexec/mysqld: Normal shutdown
180119 14:47:19 [ERROR] /usr/libexec/mysqld: Sort aborted: Query execution was interrupted 180119 14:47:19 [Note] Event Scheduler: Purging the queue. 0 events 180119 14:47:20 [ERROR] /usr/libexec/mysqld: Sort aborted: Query execution was interrupted 180119 14:47:20 [ERROR] /usr/libexec/mysqld: Sort aborted: Query execution was interrupted 180119 14:47:20 [ERROR] /usr/libexec/mysqld: Sort aborted: Query execution was interrupted 180119 14:47:21 [ERROR] /usr/libexec/mysqld: Sort aborted: Query execution was interrupted 180119 14:47:21 [Warning] /usr/libexec/mysqld: Forcing close of thread 81 user: 'root'
180119 14:47:21 [Warning] /usr/libexec/mysqld: Forcing close of thread 11 user: 'root'
180119 14:47:21 [Warning] /usr/libexec/mysqld: Forcing close of thread 10 user: 'root'
180119 14:47:21 [Warning] /usr/libexec/mysqld: Forcing close of thread 7 user: 'root'
180119 14:47:21 [Warning] /usr/libexec/mysqld: Forcing close of thread 6 user: 'root'
180119 14:47:22 [ERROR] /usr/libexec/mysqld: Sort aborted: Query execution was interrupted 180119 14:47:29 [ERROR] /usr/libexec/mysqld: Sort aborted: Query execution was interrupted 180119 14:47:30 InnoDB: Starting shutdown... 180119 14:47:31 InnoDB: Waiting for 200 pages to be flushed 180119 14:47:32 InnoDB: Shutdown completed; log sequence number 4377009068860 180119 14:47:32 [Note] /usr/libexec/mysqld: Shutdown complete
180119 14:47:32 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended 180119 14:47:34 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 180119 14:47:34 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead. 180119 14:47:34 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead. 180119 14:47:34 [Note] Plugin 'FEDERATED' is disabled. 180119 14:47:34 InnoDB: The InnoDB memory heap is disabled 180119 14:47:34 InnoDB: Mutexes and rw_locks use GCC atomic builtins 180119 14:47:34 InnoDB: Compressed tables use zlib 1.2.3 180119 14:47:34 InnoDB: Using Linux native AIO 180119 14:47:34 InnoDB: Warning: innodb_file_io_threads is deprecated. Please use innodb_read_io_threads and innodb_write_io_threads instead 180119 14:47:34 InnoDB: Initializing buffer pool, size = 1.0G 180119 14:47:34 InnoDB: Completed initialization of buffer pool 180119 14:47:34 InnoDB: highest supported file format is Barracuda. 180119 14:47:37 InnoDB: Waiting for the background threads to start 180119 14:47:38 InnoDB: 5.5.42 started; log sequence number 4377009068860 180119 14:47:38 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306 180119 14:47:38 [Note] - '0.0.0.0' resolves to '0.0.0.0'; 180119 14:47:38 [Note] Server socket created on IP: '0.0.0.0'. 180119 14:47:38 [Warning] 'user' entry 'root@bitrix.localdomain' ignored in --skip-name-resolve mode. 180119 14:47:38 [Warning] 'user' entry '@bitrix.localdomain' ignored in --skip-name-resolve mode. 180119 14:47:38 [Warning] 'proxies_priv' entry '@ root@bitrix.localdomain' ignored in --skip-name-resolve mode. 180119 14:47:38 [Note] Event Scheduler: Loaded 0 events 180119 14:47:38 [Note] /usr/libexec/mysqld: ready for connections. Version: '5.5.42' socket: '/var/lib/mysqld/mysqld.sock' port: 3306 MySQL Community Server (GPL) by Remi [/CODE] |
Использую постоянное соединение с БД.
Т.к. опыта у меня немного - прошу указать где может быть ошибка.