Elasticsearch Not enough space, Start Timeout

Not enough space

内存空间不足
看一下 jvm.options 文件

# Xms represents the initial size of total heap space
# Xmx represents the maximum size of total heap space

-Xms1g
-Xmx1g

可以看到 Elasticsearch 默认使用 物理内存的 50%,这里是 1G,系统就应该有 2G 。官方说明

但我的虚机只有 1G … 于是就有了如下配置

# Xms represents the initial size of total heap space
# Xmx represents the maximum size of total heap space

# -Xms1g
# -Xmx1g

# 不要使用 1G 了,512M吧
-Xms512m
-Xmx512m

启动服务试试

systemctl start elasticsearch
Start Timeout

这个时候你会发现,启动 timeout 了,于是针对 timeout 特别行动启动了

vi /usr/lib/systemd/system/elasticsearch.service

随意的找了个位置就把控制器装上了

# 服务启动超时时间
TimeoutStartSec=1200

reload生效

systemctl daemon-reload
systemctl start elasticsearch

老实说,这么弄的,连正常测试跑着都费劲,还是该升级升级吧

20分钟都没跑起来,还是升级了配置

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值