Mysqld shutting down by itself
Posted
by
AJ Naidas
on Server Fault
See other posts from Server Fault
or by AJ Naidas
Published on 2014-06-12T08:08:37Z
Indexed on
2014/06/12
9:26 UTC
Read the original article
Hit count: 219
I'm running a Wordpress Blog that gets medium-high traffic. It is hosted in an Ubuntu Server 2GB Memory 2 Core Processor 40GB SSD Disk, 3TB Transfer.
The problem is that MySQL shuts down by itself after an hour or two. I had to restart mysql each and every time this happens. I checked the logs and this is what I found:
140612 6:48:14 [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.
140612 6:48:14 [Note] Plugin 'FEDERATED' is disabled.
140612 6:48:14 InnoDB: The InnoDB memory heap is disabled
140612 6:48:14 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140612 6:48:14 InnoDB: Compressed tables use zlib 1.2.3.4
140612 6:48:14 InnoDB: Initializing buffer pool, size = 1.4G
InnoDB: mmap(1502412800 bytes) failed; errno 12
140612 6:48:14 InnoDB: Completed initialization of buffer pool
140612 6:48:14 InnoDB: Fatal error: cannot allocate memory for the buffer pool
140612 6:48:14 [ERROR] Plugin 'InnoDB' init function returned error.
140612 6:48:14 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140612 6:48:14 [ERROR] Unknown/unsupported storage engine: InnoDB
140612 6:48:14 [ERROR] Aborting
140612 6:48:14 [Note] /usr/sbin/mysqld: Shutdown complete
judging by this line:
140612 6:48:14 InnoDB: Fatal error: cannot allocate memory for the buffer pool
I suspect that this is a memory problem, but I would like to hear from the experts here before I conclude.
Is this a lack of memory problem? Do you think the value of max_connections
in my.cnf
(currently 100) is a potential cause and needs increasing?
TIA.
© Server Fault or respective owner