コメントありがとうございます。 サービス終了した今なら、安く中古が手に入りそ…
MariaDBが落ちた
突如MariaDBが落ちたのでログをチェックしてみた
$ sudo cat /var/log/mariadb/mariadb.log 181031 14:47:12 mysqld_safe Number of processes running now: 0 181031 14:47:15 mysqld_safe mysqld restarted 181031 14:47:51 [Note] /usr/libexec/mysqld (mysqld 5.5.47-MariaDB) starting as process 14212 ... 181031 14:48:12 InnoDB: The InnoDB memory heap is disabled 181031 14:48:12 InnoDB: Mutexes and rw_locks use GCC atomic builtins 181031 14:48:12 InnoDB: Compressed tables use zlib 1.2.7 181031 14:48:12 InnoDB: Using Linux native AIO 181031 14:48:12 InnoDB: Initializing buffer pool, size = 128.0M InnoDB: mmap(137756672 bytes) failed; errno 12 181031 14:48:12 InnoDB: Completed initialization of buffer pool 181031 14:48:12 InnoDB: Fatal error: cannot allocate memory for the buffer pool 181031 14:48:12 [ERROR] Plugin 'InnoDB' init function returned error. 181031 14:48:12 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 181031 14:48:12 [Note] Plugin 'FEEDBACK' is disabled. 181031 14:48:13 [ERROR] Unknown/unsupported storage engine: InnoDB 181031 14:48:13 [ERROR] Aborting 181031 14:48:18 [Note] /usr/libexec/mysqld: Shutdown complete
どうやら割り当てるメモリがないらしい
根本的な解決にはならないが、
MariaDBに割り当てるメモリ量を減らすことで
応急処置を取ることにした
$ sudo cp /etc/my.cnf /etc/my.cnf.`date +%Y%m%d` $ sudo vi /etc/my.cnf [mysqld] innodb_buffer_pool_size = 96M :eq $ sudo systemctl restart mariadb.service
検索
コメントを残す