El servidor mysql falla periódicamente

El servidor mysql falla periódicamente

Estoy ejecutando una instancia de Drupal en un servidor Ubuntu. Sin embargo, parece que el servidor mysql tiende a fallar periódicamente.

El registro que estoy obteniendo es este:

131221  4:22:54 [Note] /usr/sbin/mysqld: Shutdown complete

131221  4:22:55 [Note] Plugin 'FEDERATED' is disabled.
131221  4:22:55 InnoDB: The InnoDB memory heap is disabled
131221  4:22:55 InnoDB: Mutexes and rw_locks use GCC atomic builtins
131221  4:22:55 InnoDB: Compressed tables use zlib 1.2.3.4
131221  4:22:55 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
131221  4:22:55 InnoDB: Completed initialization of buffer pool
131221  4:22:55 InnoDB: Fatal error: cannot allocate memory for the buffer pool
131221  4:22:55 [ERROR] Plugin 'InnoDB' init function returned error.
131221  4:22:55 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
131221  4:22:55 [ERROR] Unknown/unsupported storage engine: InnoDB
131221  4:22:55 [ERROR] Aborting

131221  4:22:55 [Note] /usr/sbin/mysqld: Shutdown complete

131223  8:22:00 [Note] Plugin 'FEDERATED' is disabled.
131223  8:22:00 InnoDB: The InnoDB memory heap is disabled
131223  8:22:00 InnoDB: Mutexes and rw_locks use GCC atomic builtins
131223  8:22:00 InnoDB: Compressed tables use zlib 1.2.3.4
131223  8:22:00 InnoDB: Initializing buffer pool, size = 128.0M
131223  8:22:00 InnoDB: Completed initialization of buffer pool
131223  8:22:00 InnoDB: highest supported file format is Barracuda.
InnoDB: Log scan progressed past the checkpoint lsn 4844461078
131223  8:22:00  InnoDB: Database was not shut down normally!

¿Tiene alguna sugerencia sobre cómo se puede resolver esto? Intenté jugar con varios números en my.cnf pero no tuve suerte.

Respuesta1

Parece que su sistema no tiene suficiente memoria libre para el grupo de búfer de innodb. Podrías intentar reducir el tamaño de innodb_buffer_pool en el archivo my.cnf.

innodb_buffer_pool_size = 10M

por ejemplo, luego reinicie mysql. Reducir el tamaño del grupo de búfer de innodb puede afectar el rendimiento de su sistema, por lo que deberá ser consciente de esto y quizás considerar también algún otro ajuste.

información relacionada