简体   繁体   English

elasticsearch安装插件:无法为对象堆保留足够的空间

[英]elasticsearch install plugin: Could not reserve enough space for object heap

I am trying to install the elasticsearch plugin with the command: ./plugin install license which I found on this tut: link 我正在尝试使用以下命令./plugin install license插件: ./plugin install license我在此tut: 链接中找到了

But I get the error message: 但是我收到错误消息:

Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. VM初始化期间发生错误无法为对象堆保留足够的空间错误:无法创建Java虚拟机。 Error: A fatal exception has occurred. 错误:发生致命异常。 Program will exit. 程序将会退出。

After that even if I run java -version I get the same error! 在那之后,即使我运行java -version我也会遇到相同的错误! Before I run ./plugin install license java -version worked fine and printed: 在运行./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) Java版本“ 1.7.0_79” OpenJDK运行时环境(IcedTea 2.5.6)(7u79-2.5.6-0ubuntu1.14.04.1)OpenJDK 64位服务器VM(内部版本24.79-b02,混合模式)

Does anybody know whats my problem here? 有人知道我的问题在这里吗? Its a fresh install of Ubuntu 14.04.4 LTS and I installed elasticsearch 2.2.3 它是Ubuntu 14.04.4 LTS的全新安装,我安装了elasticsearch 2.2.3

Installation for ElasticSearch 安装ElasticSearch

1) Comment entry in C:\\\\elasticsearch-5.4.0\\elasticsearch-5.4.0\\config\\jvm.options 1)在C:\\\\ elasticsearch-5.4.0 \\ elasticsearch-5.4.0 \\ config \\ jvm.options中添加注释条目

#-Xms2g
#-Xmx2g

2) set ES_JAVA_OPTS as below in elasticsearch.bat 2)在elasticsearch.bat中如下设置ES_JAVA_OPTS

set ES_JAVA_OPTS = "-Xms512m -Xmx512m"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM