问答详情
源自:2-2 单实例安装

启动后显示已杀死

老师我已启动什么反应都没有,过了会儿显示已杀死,这是什么问题啊

jdk版本是1.8的

elastic版本是5.6的

提问者:qq_想象中_03627814 2017-11-11 12:41

个回答

  • 瓦力老师
    2017-11-13 13:05:30

    重点看error信息:Cannot allocate memory,这是你的内存不够导致的,默认是2G,如果机器内存较小的话,可以调整config/jvm.options里的JVM内存参数,比如可以设定512MB,-Xmx512mb -Xms512mb 具体可以根据自己的机器调整

  • 翔宝大毛团
    2019-03-26 21:45:35

    elasticsearch6.6.2的config/jvm.options配置如果写成-Xms512mb;-Xmx512mb

    这样会报错

    https://img.mukewang.com/5c9a2ccb0001703a05560060.jpg

    如果写成-Xms512m;-Xmx512m单位没有b的话就正常启动了

  • qq_想象中_03627814
    2017-11-11 13:11:57

    Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00007f82e6000000, 33554432, 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 33554432 bytes for committing reserved memory.
    # An error report file with more information is saved as:
    # /root/elasticsearch-5.5.3/hs_err_pid3028.log