[エラー] InnoDB:バッファプールにメモリを割り当てることができません



Innodb Cannot Allocate Memory



2018-05-07 01:17:43 3327 [Note] Plugin 'FEDERATED' is disabled. 2018-05-07 01:17:43 7f4912cf4740 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator. 2018-05-07 01:17:43 3327 [Note] InnoDB: Using atomics to ref count buffer pool pages 2018-05-07 01:17:43 3327 [Note] InnoDB: The InnoDB memory heap is disabled 2018-05-07 01:17:43 3327 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2018-05-07 01:17:43 3327 [Note] InnoDB: Memory barrier is not used 2018-05-07 01:17:43 3327 [Note] InnoDB: Compressed tables use zlib 1.2.3 2018-05-07 01:17:43 3327 [Note] InnoDB: Using Linux native AIO 2018-05-07 01:17:43 3327 [Note] InnoDB: Using CPU crc32 instructions 2018-05-07 01:17:43 3327 [Note] InnoDB: Initializing buffer pool, size = 80.0G InnoDB: mmap(10989076480 bytes) failed errno 12 2018-05-07 01:17:43 3327 [ERROR] InnoDB: Cannot allocate memory for the buffer pool 2018-05-07 01:17:43 3327 [ERROR] Plugin 'InnoDB' init function returned error. 2018-05-07 01:17:43 3327 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2018-05-07 01:17:43 3327 [ERROR] Unknown/unsupported storage engine: InnoDB 2018-05-07 01:17:43 3327 [ERROR] Aborting


サーバーはより多くのリソースを消費するタスクを開始し、サーバー上のmysqlが予期せずダウンします。エラーログの説明は、山に示されているとおりです。



[ERROR] InnoDB: Cannot allocate memory for the buffer pool


free -gを使用して、現在のシステムで使用可能なメモリが6gしかないことを確認します





そして、my.cnf構成ファイルを確認してください。内部のbuffer_poolは



innodb_buffer_pool_size = 64G


現在使用可能なメモリが十分でないため、マシンがダウンしており、開いているタスクを簡単に停止できないと推定されます。 innodb_buffer_pool_sizeの構成を1Gに変更し、mysqlサービスを再起動すると、問題は解決します。