错误日志中关于innodb的问题收集

1.错误日志报告如下:

.....

120223 23:36:06 InnoDB: Compressed tables use zlib 1.2.3

120223 23:36:06 InnoDB: Initializing buffer pool, size = 24.0G

InnoDB: mmap(26474446848 bytes) failed; errno 12

120223 23:36:06 InnoDB: Completed initialization of buffer pool

120223 23:36:06 InnoDB: Fatal error: cannot allocate memory for the buffer pool

120223 23:36:06 [ERROR] Plugin 'InnoDB' init function returned error.

120223 23:36:06 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.

120223 23:36:06 [ERROR] Failed to initialize plugins.

120223 23:36:06 [ERROR] Aborting

分析: 

分配给innodb_buffer_pool的内存超过了物理内存

解决办法:

查看my.cnf配置文件,innodb_buffer_pool设置为合适的值.

posted @ 2015-04-11 18:06  mofy  阅读(216)  评论(0编辑  收藏  举报