VPS侦探论坛

 找回密码
 注册
查看: 4210|回复: 4

数据库经常自己退出,军哥能帮忙看一下什么原因吗

[复制链接]
发表于 2017-4-7 23:36:43 | 显示全部楼层 |阅读模式

数据库不定时自动退出不工作错误日志已上传
感谢

本帖子中包含更多资源

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

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-4-8 09:12:25 | 显示全部楼层


2017-04-07T14:02:46.303960Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2017-04-07T14:02:46.304028Z 0 [ERROR] InnoDB: mmap(137428992 bytes) failed; errno 12
2017-04-07T14:02:46.304037Z 0 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2017-04-07T14:02:46.304043Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2017-04-07T14:02:46.304054Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2017-04-07T14:02:46.304059Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2017-04-07T14:02:46.304064Z 0 [ERROR] Failed to initialize plugins.
2017-04-07T14:02:46.304066Z 0 [ERROR] Aborting

内存不够用了
你的是什么配置的?可以先调整innodb_buffer_pool_size 调小些观察看看
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-4-8 12:39:59 | 显示全部楼层

回复 2# 的帖子


机器类型
g1-small(1 个 vCPU,1.7 GB 内存)
谷歌云的 17刀配置
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-4-8 12:49:51 | 显示全部楼层



调整成64M了
这个会不会对性能有比较大的影响
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2017-4-8 14:37:01 | 显示全部楼层

回复 4# 的帖子


innodb_buffer_pool_size参数表示缓冲池字节大小,InnoDB缓存表和索引数据的内存区域。

如果对innodb依赖很大的话就会有影响

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-27 09:28 , Processed in 0.027394 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表