简体   繁体   English

安装了 Elasticsearch 5.5 启动服务失败

[英]Installed Elasticsearch 5.5 and failed to start the service

Installed elasticsearch v5.5 in centos and ran the following command to initiate the service.在centos中安装elasticsearch v5.5,运行如下命令启动服务。

sudo service elasticsearch start

Getting following error while running the above command.运行上述命令时出现以下错误。

Starting elasticsearch: OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000085330000, 2060255232, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 2060255232 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /tmp/hs_err_pid15359.log

Suggest me how to fix this.建议我如何解决这个问题。

Elasticsearch starts with 2 GB of RAM as default in 5.X versions. Elasticsearch 在 5.X 版本中默认使用 2 GB RAM。

Assuming that you are using virtual machine, it seems like your VM has less free memory than 2GB.假设您使用的是虚拟机,您的虚拟机的可用内存似乎少于 2GB。 Try giving your VM more memory or change your Elasticsearch JVM settings in /etc/elasticsearch/jvm.options (for example set -Xms512m -Xmx512m ).尝试为您的 VM 提供更多内存或更改/etc/elasticsearch/jvm.options Elasticsearch JVM 设置(例如 set -Xms512m -Xmx512m )。

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

相关问题 ElasticSearch 服务无法在 Windows 上启动 - ElasticSearch service fails to start on Windows 引导时无法启动服务 - failed to start service on boot 无法启动ElasticSearch-找不到插件类 - Failed to start ElasticSearch - Could not find plugin class 如何使用多个JAVA JDK启动Elasticsearch服务 - How to start Elasticsearch service with multiple JAVA JDKs 无法在 ubuntu 16.04 中将 elasticsearch 作为服务启动 - Can not start elasticsearch as a service in ubuntu 16.04 Elasticsearch可能无法启动..多个版本 - Elasticsearch may have failed to start..tried multiple versions ElasticSearch 服务无法启动。 找不到JVM - ElasticSearch service failing to start. Cannot find JVM Elasticsearch:“无法获取 {IP} 的节点信息”和服务日志中的“noNodeAvailableException” - Elasticsearch : “failed to get node info for {IP}” and “noNodeAvailableException” in service log 与Procrun一起安装的Windows服务在// TS模式下工作,但不作为Windows服务启动,说它“已启动然后停止” - Windows service installed with Procrun works in //TS mode, but doesn't start as a Windows service saying it “started and then stopped” cloudera-无法执行命令在服务Accumulo 1.6上启动 - cloudera - Failed to execute command Start on service Accumulo 1.6
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM