博客信息

elasticsearch5.5启动出现的错误

发布时间:『 2019-10-15 03:53』  博客类别:索引框架  阅读(684)

小李飞刀_elasticsearch


[elastic@localhost elasticsearch-head]$ Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000085330000, 2060255232, 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 2060255232 bytes for committing reserved memory.

# An error report file with more information is saved as:

# /tmp/hs_err_pid1480.log

 

 

由于elasticsearch5.5默认分配jvm空间大小为2g,修改jvm空间分配

vi /javaxl/es/elasticsearch-5.5.2/config/jvm.options

默认配置 

-Xms2g  

-Xmx2g  

 

改成

-Xms512m  

-Xmx512m


小李飞刀_elasticsearch


over......


关键字:     索引框架       elasticsearch       启动报错  

备案号:湘ICP备19000029号

Copyright © 2018-2019 javaxl晓码阁 版权所有