·设为首页收藏本站📧邮箱修改🎁免费下载专区💎积分✅卡密📒收藏夹👽聊天室
12下一页
返回列表 发布新帖

高手帮忙分析下MYSQL日志,经常宕机重启服务器就好了

852 10
发表于 2023-1-2 09:52:39 | 查看全部 阅读模式

马上注册,免费下载更多dz插件网资源。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
有个网站 隔个两三天MYSQL就出错 访问不了。我每次都要盯着重启服务器才能恢复,但是过两天又出错了,本人菜鸟,我把日志错误给大神看下,看看是哪里的问题呀?

2023-01-01 22:02:29 31897 [Note] InnoDB: from the doublewrite buffer...
InnoDB: Doing recovery: scanned up to log sequence number 3145818592
2023-01-01 22:02:30 31897 [Note] InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percent: 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
InnoDB: Last MySQL binlog file position 0 78445, file name mysql-bin.000154
2023-01-01 22:02:31 31897 [Note] InnoDB: 128 rollback segment(s) are active.
2023-01-01 22:02:31 31897 [Note] InnoDB: Waiting for purge to start
2023-01-01 22:02:31 31897 [Note] InnoDB: 5.6.50 started; log sequence number 3145818592
2023-01-01 22:02:31 31897 [Note] Recovering after a crash using mysql-bin
2023-01-01 22:02:31 31897 [Note] Starting crash recovery...
2023-01-01 22:02:31 31897 [Note] Crash recovery finished.
2023-01-01 22:02:31 31897 [Note] RSA private key file not found: /www/server/data//private_key.pem. Some authentication plugins will not work.
2023-01-01 22:02:31 31897 [Note] RSA public key file not found: /www/server/data//public_key.pem. Some authentication plugins will not work.
2023-01-01 22:02:31 31897 [Note] Server hostname (bind-address): '*'; port: 3306
2023-01-01 22:02:31 31897 [Note] IPv6 is available.
2023-01-01 22:02:31 31897 [Note]   - '::' resolves to '::';
2023-01-01 22:02:31 31897 [Note] Server socket created on IP: '::'.
2023-01-01 22:02:32 31897 [Note] Event Scheduler: Loaded 0 events
2023-01-01 22:02:32 31897 [Note] /www/server/mysql/bin/mysqld: ready for connections.
Version: '5.6.50-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
2023-01-01 22:04:07 32313 [Note] Plugin 'FEDERATED' is disabled.
2023-01-01 22:04:07 32313 [Note] InnoDB: Using atomics to ref count buffer pool pages
2023-01-01 22:04:07 32313 [Note] InnoDB: The InnoDB memory heap is disabled
2023-01-01 22:04:07 32313 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2023-01-01 22:04:07 32313 [Note] InnoDB: Memory barrier is not used
2023-01-01 22:04:07 32313 [Note] InnoDB: Compressed tables use zlib 1.2.11
2023-01-01 22:04:07 32313 [Note] InnoDB: Using Linux native AIO
2023-01-01 22:04:07 32313 [Note] InnoDB: Using CPU crc32 instructions
2023-01-01 22:04:07 32313 [Note] InnoDB: Initializing buffer pool, size = 384.0M
InnoDB: mmap(412090368 bytes) failed; errno 12
2023-01-01 22:04:07 32313 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2023-01-01 22:04:07 32313 [ERROR] Plugin 'InnoDB' init function returned error.
2023-01-01 22:04:07 32313 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2023-01-01 22:04:07 32313 [ERROR] Unknown/unsupported storage engine: InnoDB
2023-01-01 22:04:07 32313 [ERROR] Aborting

2023-01-01 22:04:07 32313 [Note] Binlog end
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'partition'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_METRICS'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_CMPMEM'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_CMP'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_LOCKS'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'INNODB_TRX'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'BLACKHOLE'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'ARCHIVE'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'MRG_MYISAM'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'MyISAM'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'MEMORY'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'CSV'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'sha256_password'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'mysql_old_password'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'mysql_native_password'
2023-01-01 22:04:07 32313 [Note] Shutting down plugin 'binlog'
2023-01-01 22:04:07 32313 [Note] /www/server/mysql/bin/mysqld: Shutdown complete


昨天就是晚上10.04分停止的,我早上七点才看到重启服务器。   WP程序
我要说一句 收起回复
创宇盾启航版免费网站防御网站加速服务

评论10

IT618发布Lv.8 发表于 2023-1-2 09:53:01 | 查看全部
内存太小了 ?
我要说一句 收起回复
独家记忆Lv.8 发表于 2023-1-2 09:53:19 | 查看全部
不知道啊
我要说一句 收起回复
独家记忆Lv.8 发表于 2023-1-2 09:54:12 | 查看全部
https://blog.csdn.net/xianglingchuan/article/details/72725346
这个跟你差不多的,参考一下
我要说一句 收起回复
CrystαlLv.8 发表于 2023-1-2 09:54:42 | 查看全部
云服务器后台上有图表看啊
我要说一句 收起回复
婷姐Lv.8 发表于 2023-1-2 09:55:27 | 查看全部
2023-01-01 22:04:07 32313 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2023-01-01 22:04:07 32313 [ERROR] Plugin 'InnoDB' init function returned error.
2023-01-01 22:04:07 32313 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2023-01-01 22:04:07 32313 [ERROR] Unknown/unsupported storage engine: InnoDB
2023-01-01 22:04:07 32313 [ERROR] Aborting

my.cnf文件修改:
[mysqld]
#innodb缓冲池大小
innodb_buffer_pool_size = 1024M
我要说一句 收起回复
CrystαlLv.8 发表于 2023-1-2 09:56:26 | 查看全部
服务器2H2G的 ,按照你这个修改可以吗?
我要说一句 收起回复
IT618发布Lv.8 发表于 2023-1-2 09:57:22 | 查看全部
2g的inno db buffer size填个256m差不多了
我要说一句 收起回复
浅生Lv.8 发表于 2023-1-2 09:57:38 | 查看全部
我试试
我要说一句 收起回复
独家记忆Lv.8 发表于 2023-1-2 09:58:17 | 查看全部
2023-01-01 22:04:07 32313 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
我要说一句 收起回复

回复

 懒得打字嘛,点击右侧快捷回复【查看最新发布】   【应用商城享更多资源】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

创宇盾启航版免费网站防御网站加速服务
投诉/建议联系

discuzaddons@vip.qq.com

未经授权禁止转载,复制和建立镜像,
如有违反,按照公告处理!!!
  • 联系QQ客服
  • 添加微信客服

联系DZ插件网微信客服|最近更新|Archiver|手机版|小黑屋|DZ插件网! ( 鄂ICP备20010621号-1 )|网站地图 知道创宇云防御

您的IP:18.188.218.219,GMT+8, 2024-12-22 22:47 , Processed in 0.285203 second(s), 128 queries , Gzip On, Redis On.

Powered by Discuz! X5.0 Licensed

© 2001-2024 Discuz! Team.

关灯 在本版发帖
扫一扫添加微信客服
QQ客服返回顶部
快速回复 返回顶部 返回列表