Logstash failed to start up because of memory issues


(Mulligan) #1

My Log stash failed to start up because of memory issues:

This is what i see
[root@ip-10-206-118-171 logstash]# /usr/share/logstash/bin/logstash --path.settings /etc/logstash
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x000000054a660000, 10562961408, 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 10562961408 bytes for committing reserved memory.

An error report file with more information is saved as:

/var/log/logstash/hs_err_pid3900.log

[root@ip-10-206-118-171 logstash]#

Memory information on the box .

/proc/meminfo:
MemTotal: 7747256 kB
MemFree: 1851672 kB
MemAvailable: 3888596 kB

Logstash JVM options.

JVM configuration

Xms represents the initial size of total heap space

Xmx represents the maximum size of total heap space

-Xms10g
-Xmx10g


(Magnus B├Ąck) #2

Why are you setting -Xmx10g when you only have 8 GB RAM?


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.