使用 man ascii 来查看 ASCII 表。

拔了一条内存,es启不来

Elasticsearch | 作者 wyntergreg | 发布于2017年05月12日 | 阅读数:3251

原内存是4+8=12,拔了一条8G的,然后就启不来了
jvm.options以前用默认的,看了这里https://github.com/docker-libr ... s/131  试着把Xms和Xmx改小也启不来(都改成128m),报一样的错
$ bin/elasticsearch
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0000000, 89456640, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 89456640 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /usr/local/elasticsearch-5.2.0/hs_err_pid2750.log
89456640这个值能随着Xmx的改小而变小,但是es就是启不来,是不是需要修改gc什么玩意的?拔内存以前es里只有6G数据而已啊
 
重新解压了一个elasticsearch,全用默认设置,也启动不来了,一样的错误。我在2G的机器上都能启动啊,为何4G的启不来了?求教啊?
已邀请:

wangjueying - Java攻城狮-ES爱好者

赞同来自:

插回去就好了。MDZZ .jpg

wyntergreg

赞同来自:

找到原因了,supervisor没设置好,开机时调了好几次es失败了,估计是把jvm给占满了,我把supervisor开机启动停止了然后重启就清静了

要回复问题请先登录注册