原内存是4+8=12,拔了一条8G的,然后就启不来了
jvm.options以前用默认的,看了这里https://github.com/docker-libr ... s/131 试着把Xms和Xmx改小也启不来(都改成128m),报一样的错
重新解压了一个elasticsearch,全用默认设置,也启动不来了,一样的错误。我在2G的机器上都能启动啊,为何4G的启不来了?求教啊?
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的启不来了?求教啊?
2 个回复
wangjueying - Java攻城狮-ES爱好者
赞同来自:
wyntergreg
赞同来自: