内存不够了报错[ERROR] OBD-2000: (127.0.0.1) not enough memory. (Available: 0.0B, Need: 3.0G)

【 使用环境 】测试环境
【 OB or 其他组件 】OB
【 使用版本 】社区all in one
【问题描述】当运行obd demo的时候,报错内存不足
【复现路径】问题出现前后相关操作
【问题现象及影响】
Try to get lib-repository
Remote oceanbase-ce-libs-4.1.0.1-102000042023061314.el7-c3f797aae1ce258ec9be77898b94e4e7a501cd0f repository install ok
Remote oceanbase-ce-4.1.0.1-102000042023061314.el7-d03fafa6fa8ceb0636e4db05b5b5f6c3ac2256a3 repository lib check ok
demo deployed
Get local repositories ok
Search plugins ok
Open ssh connection ok
Load cluster param plugin ok
Check before start observer x
[WARN] OBD-1008: (127.0.0.1) failed to get fs.aio-max-nr and fs.aio-nr
[ERROR] OBD-1007: (127.0.0.1) open files must not be less than 20000 (Current value: 1024)
[ERROR] OBD-2000: (127.0.0.1) not enough memory. (Available: 0.0B, Need: 3.0G)
[WARN] OBD-1012: (127.0.0.1) clog and data use the same disk (/)

Check before start obagent ok
Check before start obproxy ok
Check before start prometheus ok
Check before start grafana ok
See https://www.oceanbase.com/product/ob-deployer/error-codes .
Trace ID: d0fe3546-15b9-11ee-be57-c403a89e0461
If you want to view detailed obd logs, please run: obd display-trace d0fe3546-15b9-11ee-be57-c403a89e0461
[root@SG-NB-019 oceanbase-all-in-one]#

【附件】

1 个赞

内存不足

1 个赞

please run: obd display-trace d0fe3546-15b9-11ee-be57-c403a89e0461

照着解决就行 了,内存不足可以改对应的文件

1 个赞

Thanks, a lot bros.
但是我得系统里面应该是有足够的内存啊。

看日志 主要报错是这里:open files must not be less than 20000 (Current value: 1024)
可以尝试通过以下步骤调大 open files 数量

  1. echo 20480 > /proc/sys/fs/file-max
    2.加入以下配置,重启即可生效
    vim /etc/security/limits.conf
    hard nofile 20480
    soft nofile 20480

[ERROR] OBD-2000: (127.0.0.1) not enough memory. (Available: 0.0B, Need: 3.0G)
这个看下home目录下内存还有多大 , demo 用的是home目录的磁盘空间