运行时
elasticsearch.bat
在命令提示符中,
我收到错误:
Invalid initial heap size: -Xms${packaging.elastic.heap.min}
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
通话:
elasticsearch -Xmx1g -Xms1g
我尝试用不同的参数代替 1GB 也不起作用。 1GB is the default无论如何。
我是第一次在这台机器上运行 ES。这一直运行良好 直到今天——当我调用 ES 购买它的批量调用者
..>bin>elasticsearch.bat
效果很好。
我错过了什么?
TIA。
注意:我看到Avoiding Initial Memory Heap Size Error , Elasticsearch reports default heap memory size after setting environment variable以及其他一些相关讨论。
最佳答案
在文件中
elasticsearch-5.4.0/config/jvm.options
评论 -Xms2g -Xmx2g
像这样
#-Xms2g
#-Xmx2g
添加
Xms4000米
Xmx4000米
它对我有用!!!
关于java - Elasticsearch启动错误——堆大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31618156/