Падает MySql InnoDB: Starting crash recovery
Posted: Sun Mar 11, 2018 12:42 pm
Добрый день. Очень нуждаюсь в помощи. Каждый день падает MySql.
Причину самостоятельно не сумел выявить.
Вот лог mysqld.log
Вот конфиг mysql
Вот лог messages в котором видно, что не хватает памяти. Вопрос как узнать куда она девается в этот момент ошибки? Что ее сжирает и процесс убивается?
Причину самостоятельно не сумел выявить.
Вот лог mysqld.log
SpoilerShow
Version: '5.5.55' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL) by Remi
180311 3:03:08 [Note] Plugin 'FEDERATED' is disabled.
180311 3:03:08 InnoDB: The InnoDB memory heap is disabled
180311 3:03:08 InnoDB: Mutexes and rw_locks use GCC atomic builtins
180311 3:03:08 InnoDB: Compressed tables use zlib 1.2.3
180311 3:03:08 InnoDB: Using Linux native AIO
180311 3:03:08 InnoDB: Initializing buffer pool, size = 128.0M
180311 3:03:08 InnoDB: Completed initialization of buffer pool
180311 3:03:08 InnoDB: highest supported file format is Barracuda.
InnoDB: Log scan progressed past the checkpoint lsn 46038706334
180311 3:03:08 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 46038732437
180311 3:03:08 InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
180311 3:03:09 InnoDB: Waiting for the background threads to start
180311 3:03:10 InnoDB: 5.5.55 started; log sequence number 46038732437
180311 3:03:10 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
180311 3:03:10 [Note] - '0.0.0.0' resolves to '0.0.0.0';
180311 3:03:10 [Note] Server socket created on IP: '0.0.0.0'.
180311 3:03:10 [Note] Event Scheduler: Loaded 0 events
180311 3:03:10 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.55' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL) by Remi
180311 3:03:08 [Note] Plugin 'FEDERATED' is disabled.
180311 3:03:08 InnoDB: The InnoDB memory heap is disabled
180311 3:03:08 InnoDB: Mutexes and rw_locks use GCC atomic builtins
180311 3:03:08 InnoDB: Compressed tables use zlib 1.2.3
180311 3:03:08 InnoDB: Using Linux native AIO
180311 3:03:08 InnoDB: Initializing buffer pool, size = 128.0M
180311 3:03:08 InnoDB: Completed initialization of buffer pool
180311 3:03:08 InnoDB: highest supported file format is Barracuda.
InnoDB: Log scan progressed past the checkpoint lsn 46038706334
180311 3:03:08 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 46038732437
180311 3:03:08 InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
180311 3:03:09 InnoDB: Waiting for the background threads to start
180311 3:03:10 InnoDB: 5.5.55 started; log sequence number 46038732437
180311 3:03:10 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
180311 3:03:10 [Note] - '0.0.0.0' resolves to '0.0.0.0';
180311 3:03:10 [Note] Server socket created on IP: '0.0.0.0'.
180311 3:03:10 [Note] Event Scheduler: Loaded 0 events
180311 3:03:10 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.55' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL) by Remi
SpoilerShow
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
symbolic-links=0
skip-host-cache
skip-name-resolve
skip-external-locking
key_buffer_size = 256M
max_allowed_packet = 1M
table_open_cache = 4
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 1M
net_buffer_length = 2K
thread_stack = 512K
#innodb_use_native_aio = 0
innodb_file_per_table
max_connections=35
max_connect_errors=50
max_user_connections=25
wait_timeout=10
interactive_timeout=50
long_query_time=5
#slow_query_log=1
#slow_query_log_file=/var/log/mysql-slow-queries.log
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
#
# include all files from the config directory
#
!includedir /etc/my.cnf.d
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
symbolic-links=0
skip-host-cache
skip-name-resolve
skip-external-locking
key_buffer_size = 256M
max_allowed_packet = 1M
table_open_cache = 4
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 1M
net_buffer_length = 2K
thread_stack = 512K
#innodb_use_native_aio = 0
innodb_file_per_table
max_connections=35
max_connect_errors=50
max_user_connections=25
wait_timeout=10
interactive_timeout=50
long_query_time=5
#slow_query_log=1
#slow_query_log_file=/var/log/mysql-slow-queries.log
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
#
# include all files from the config directory
#
!includedir /etc/my.cnf.d
SpoilerShow
Mar 11 03:02:26 python-studio fail2ban.filter[1295]: INFO [exim-iptables] Found 91.200.12.13
Mar 11 03:03:08 python-studio kernel: [5462598.330997] Out of memory in UB 64478: OOM killed process 27165 (mysqld) score 0 vm:2223588kB, rss:103240kB, swap:122808kB
Mar 11 03:03:08 python-studio kernel: [5462598.330997] Out of memory in UB 64478: OOM killed process 27165 (mysqld) score 0 vm:2223588kB, rss:103240kB, swap:122808kB