Problems with MySQL on Ubuntu Server

February 5, 2015 1.8k 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


1 Answer

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

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!