gpt4 book ai didi

java - elasticsearch安装插件: Could not reserve enough space for object heap

转载 作者:行者123 更新时间:2023-12-01 21:26:43 37 4
gpt4 key购买 nike

我正在尝试使用以下命令安装elasticsearch插件:./plugin install license,我在此图上找到了它:link

但我收到错误消息:

Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

之后,即使我运行 java -version 我也会得到同样的错误!在我运行 ./plugin install license java -version 之前工作正常并打印:

java version "1.7.0_79" OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.14.04.1) OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)

有人知道我的问题是什么吗?它是 Ubuntu 14.04.4 LTS 的全新安装,我安装了 elasticsearch 2.2.3

最佳答案

ElasticSearch 的安装

1) C:\\elasticsearch-5.4.0\elasticsearch-5.4.0\config\jvm.options 中的注释条目

#-Xms2g
#-Xmx2g

2)在elasticsearch.bat中设置ES_JAVA_OPTS如下

set ES_JAVA_OPTS = "-Xms512m -Xmx512m"

关于java - elasticsearch安装插件: Could not reserve enough space for object heap,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38049420/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com