Mysql keeps crashing (Kill process 919 (mysqld) score 86 or sacrifice child)
I'm using wordpress on ubuntu (standard offer, didn't change any seetings) on minimal configuration (512 MB).
New, small blog, just 1 page and 2 posts. Maximum pageviews per day - 156 (yesterday).
Today in the morning I've found it doesn't work. The reason is that mysql is down.
I've restarted linux. The only visitor was me. But after short time mysql was down again (there were no visitors except me, so not big load). It repeated several times.
Later I've created 1GB swap file. For some time it was ok. So I thought that problem was solved. But later I found that mysql was down again. So 1,5 GB is not enough?
It seems like apache eats a lot of memory at some point. But I'm not sure.
Did anyone experience the same problem? Should I change any apache or mysql settings? I thought standard offer by DigitalOcean should work properly.
Here is the part of mysql error.log during crash:
140829 23:12:04 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
140829 23:12:04 [Note] Plugin 'FEDERATED' is disabled.
140829 23:12:04 InnoDB: The InnoDB memory heap is disabled
140829 23:12:04 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140829 23:12:04 InnoDB: Compressed tables use zlib 1.2.8
140829 23:12:04 InnoDB: Using Linux native AIO
140829 23:12:04 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
140829 23:12:04 InnoDB: Completed initialization of buffer pool
140829 23:12:04 InnoDB: Fatal error: cannot allocate memory for the buffer pool
140829 23:12:04 [ERROR] Plugin 'InnoDB' init function returned error.
140829 23:12:04 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140829 23:12:04 [ERROR] Unknown/unsupported storage engine: InnoDB
140829 23:12:04 [ERROR] Aborting
140829 23:12:04 [Note] /usr/sbin/mysqld: Shutdown complete