ama*_*ado 50 java memory ubuntu elasticsearch
当我尝试在我的Ubuntu中启动elasticsearch时,启动脚本会给我以下错误:
Java HotSpot(TM) Client VM warning: INFO: os::commit_memory(0x74800000, 201326592, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 201326592 bytes for committing reserved memory.
Run Code Online (Sandbox Code Playgroud)
我已经尝试搜索了这个,我找不到解决方案.如果我重新启动机器一切都运行良好一天然后弹性搜索下降并出现此错误.
我已经在elasticsearch.yml文件中设置了属性bootstrap.mlockall:true,以及默认的elasticsearch文件中的属性:
ES_HEAP_SIZE=512 (I have 1GB of RAM)
MAX_LOCKED_MEMORY=unlimited
Run Code Online (Sandbox Code Playgroud)
有人知道我需要做什么吗?
谢谢
Seb*_*Gra 31
对于当前版本的elastic(5.X),您可以在通常位于目录下的文件中配置jvm启动选项:jvm.options/etc/elasticsearch/jvm.options
-Xms1g -Xmx1g
Run Code Online (Sandbox Code Playgroud)
希望能帮助到你.
| 归档时间: |
|
| 查看次数: |
28557 次 |
| 最近记录: |