2016-03-23 2 views
1

У меня есть elasticsearch 2.2.0 и logstash 2.1, установленные в моей системе.эластичный поиск и логсташ, дающие ошибки памяти

Когда я сделать тест конфигурации для logstash с:

sudo service logstash configtest 

Это дает следующие ошибки:

There is insufficient memory for the Java Runtime Environment to continue. 
# Native memory allocation (mmap) failed to map 55545856 bytes for committing reserved memory. 
# Possible reasons: 
# The system is out of physical RAM or swap space 
# In 32 bit mode, the process size limit was hit 
# Possible solutions: 
# Reduce memory load on the system 
# Increase physical memory or swap space 
# Check if swap backing store is full 
# Use 64 bit Java on a 64 bit OS 
# Decrease Java heap size (-Xmx/-Xms) 
# Decrease number of Java threads 
# Decrease Java thread stack sizes (-Xss) 
# Set larger code cache with -XX:ReservedCodeCacheSize= 
# This output file may be truncated or incomplete. 
# 
# Out of Memory Error (os_linux.cpp:2638), pid=7887, tid=140476386535168 
# 
# JRE version: OpenJDK Runtime Environment (8.0_71-b15) (build 1.8.0_71-b15) 
# Java VM: OpenJDK 64-Bit Server VM (25.71-b15 mixed mode linux-amd64 compressed oops) 
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again 

Что такое лучший способ избавиться от этой ошибки памяти, как там ARE много предписанных решений?

Кроме того,

I have bootstrap.mlockall : true in elasticsearch.yml configured. 

Можно ли настроить elasticsearch немного по-другому?

ответ

0

Я исправил свою проблему, передав ES_JAVA_OPTS с меньшим значением, я думаю, что по умолчанию он пытается выделить для него всю память машины (в моем случае 2 ГБ), и он терпит неудачу.

Посмотрите: https://github.com/docker-library/elasticsearch/issues/131

Смежные вопросы