打印

lnmp discuz3.4每隔几天mysql就会2002连不上 军哥看下

lnmp discuz3.4每隔几天mysql就会2002连不上 军哥看下

错误日志
Version: '5.5.56-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
180524  7:27:14 [Note] Plugin 'FEDERATED' is disabled.
180524  7:27:14 InnoDB: The InnoDB memory heap is disabled
180524  7:27:14 InnoDB: Mutexes and rw_locks use GCC atomic builtins
180524  7:27:14 InnoDB: Compressed tables use zlib 1.2.3
180524  7:27:14 InnoDB: Initializing buffer pool, size = 256.0M
InnoDB: mmap(274726912 bytes) failed; errno 12
180524  7:27:14 InnoDB: Completed initialization of buffer pool
180524  7:27:14 InnoDB: Fatal error: cannot allocate memory for the buffer pool
180524  7:27:14 [ERROR] Plugin 'InnoDB' init function returned error.
180524  7:27:14 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
180524  7:27:14 [ERROR] Unknown/unsupported storage engine: InnoDB
180524  7:27:14 [ERROR] Aborting

180524  7:27:14 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

180524 10:20:14 [Note] Plugin 'FEDERATED' is disabled.
180524 10:20:14 InnoDB: The InnoDB memory heap is disabled
180524 10:20:14 InnoDB: Mutexes and rw_locks use GCC atomic builtins
180524 10:20:14 InnoDB: Compressed tables use zlib 1.2.3
180524 10:20:14 InnoDB: Initializing buffer pool, size = 256.0M
180524 10:20:14 InnoDB: Completed initialization of buffer pool
180524 10:20:14 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
180524 10:20:14  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Last MySQL binlog file position 0 671580266, file name ./mysql-bin.000019
180524 10:20:15  InnoDB: Waiting for the background threads to start
180524 10:20:16 InnoDB: 5.5.56 started; log sequence number 1799038894
180524 10:20:16 [Note] Recovering after a crash using mysql-bin
180524 10:20:28 [Note] Starting crash recovery...
180524 10:20:28 [Note] Crash recovery finished.
180524 10:20:28 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
180524 10:20:28 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
180524 10:20:28 [Note] Server socket created on IP: '0.0.0.0'.
180524 10:20:28 [Note] Event Scheduler: Loaded 0 events
180524 10:20:28 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.5.56-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution

无法重启mysql 报的啥错我不记得了,只能直接重启服务器后恢复

TOP

180524  7:27:14 InnoDB: Completed initialization of buffer pool
180524  7:27:14 InnoDB: Fatal error: cannot allocate memory for the buffer pool
按提示是无法分配内存,也就是内存不够用了,可能你其他程序占用较多
可以先调整/etc/my.conf 中 innodb_buffer_pool_size 调小些再观察看看

LNMP付费问题排查/LNMP技术支持/Paypal信用卡代付/代购VPS,域名,软件等 QQ 503228080 旺旺 lzhenbao
军哥淘宝店铺
QQ/旺旺仅提供代购及付费代维/问题解决等服务,其他不回复!LNMP相关问题请在本论坛发帖,提问前先搜索,按https://bbs.vpser.net/thread-2555-1-1.html 要求反馈问题!

TOP

回复 2# 的帖子

谢谢军哥,我试试看看

TOP