微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

docker启动elasticsearch5.5.2报错

[root@lisongyu ~]# docker run -p 9200:9200 hub.c.163.com/library/elasticsearch:5.5.2
OpenJDK 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_pid1.log
  • 原因:认启动参数jvm内存设置是2g,而我的服务器只是一台1g运存的便宜货,所以需要手动修改参数
  • 解决办法: 在启动参数中配置修改掉jvm的认值
    • -e "ES_JAVA_OPTS=-xms512m -Xmx512m"

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐