MariaDB Closes Itself

February 28, 2017 471 views
MariaDB MySQL CentOS

Hello,

I'm sharing all my error log;

170228 08:35:47 mysqldsafe Number of processes running now: 0
170228 08:35:47 mysqld
safe mysqld restarted
170228 8:35:47 [Note] /usr/libexec/mysqld (mysqld 5.5.52-MariaDB) starting as process 17360 ...
170228 8:35:47 InnoDB: The InnoDB memory heap is disabled
170228 8:35:47 InnoDB: Mutexes and rw_locks use GCC atomic builtins
170228 8:35:47 InnoDB: Compressed tables use zlib 1.2.7
170228 8:35:47 InnoDB: Using Linux native AIO
170228 8:35:47 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137756672 bytes) failed; errno 12
170228 8:35:47 InnoDB: Completed initialization of buffer pool
170228 8:35:47 InnoDB: Fatal error: cannot allocate memory for the buffer pool
170228 8:35:47 [ERROR] Plugin 'InnoDB' init function returned error.
170228 8:35:47 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
170228 8:35:47 [ERROR] mysqld: Out of memory (Needed 128917504 bytes)
170228 8:35:47 [ERROR] mysqld: Out of memory (Needed 96681984 bytes)
170228 8:35:47 [Note] Plugin 'FEEDBACK' is disabled.
170228 8:35:47 [ERROR] Unknown/unsupported storage engine: InnoDB
170228 8:35:47 [ERROR] Aborting

How can I solve this problem?

2 Answers

@cagkana9f5cd873f5b8188e469

The four lines below state that RAM is being exhausted, thus MySQL/MariaDB fails:

InnoDB: mmap(137756672 bytes) failed; errno 12
170228 8:35:47 InnoDB: Fatal error: cannot allocate memory for the buffer pool
170228 8:35:47 [ERROR] mysqld: Out of memory (Needed 128917504 bytes)
170228 8:35:47 [ERROR] mysqld: Out of memory (Needed 96681984 bytes)

Would this happen to be a 512MB Droplet? If so, you will most likely need to upgrade to at least a 1GB as MySQL/MariaDB does tend to need a somewhat decent amount of RAM -- even more so when you are running multiple services along with it (i.e. Apache, NGINX, PHP, NodeJS etc).

@cagkana9f5cd873f5b8188e469

What all is running on the server? To be more specific, what stack (LAMP, LEMP, etc) and what other software has been installed (other than WordPress)? And have you modified configuration for any of the software?

Have another answer? Share your knowledge.