ElasticSearch安装时的坑
DogJay
2018-09-22
【中间件技术】
143人已围观
elasticsearch启动时提示内存不足错误的解决方法: ----------
```shell
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000085330000, 2060255232, 0) failed; error='Cannot allocate memory' (errno=12)
```
由于 elasticsearch6.4.1 默认分配 jvm 空间大小为1g,修改 jvm空间分配
```shell
vim jvm.options -Xms2g -Xmx2g
```
修改为:
```shell
-Xms512m -Xmx512m ```
对于低内存的虚拟机来说,要使用 ES 搜索,修改这个配置时必须的。
吐槽(0)
下一篇:ELK6.4.1安装【亲试】