Problems with MySQL on Ubuntu Server

Posted February 5, 2015 2.2k views

We’ve working with an Ubuntu server, currently once or twice a day the server goes down, once I check and restart the mysql service it works again

Checking the mysql logs I see this:

150205 12:49:07 InnoDB: Initializing buffer pool, size = 128.0M InnoDB: mmap(137363456 bytes) failed; errno 12
150205 12:49:07 InnoDB: Completed initialization of buffer pool
150205 12:49:07 InnoDB: Fatal error: cannot allocate memory for the buffer pool
150205 12:49:07 [ERROR] Plugin ‘InnoDB’ init function returned error.
150205 12:49:07 [ERROR] Plugin 'InnoDB’ registration as a STORAGE ENGINE failed.
150205 12:49:07 [ERROR] Unknown/unsupported storage engine: InnoDB
150205 12:49:07 [ERROR] Aborting

If I get this well, this means the server runs out of memory?
Currently we have 512 MB of Ram and the server hosts a Symfony 2 webpage and a WordPress blog

I’ve done some research but I don’t know what to do

Any help would be appreciated


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Yep. Out of memory. Provision a larger VM or add some swap.